remote-context-executor.https.html (1120B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="utils.js"></script> 4 <script src="automatic-beacon-helper.js"></script> 5 <script src="/common/dispatcher/dispatcher.js"></script> 6 <script src="/common/get-host-info.sub.js"></script> 7 <script src="/common/utils.js"></script> 8 <script src="/resources/testdriver.js"></script> 9 <script src="/resources/testdriver-actions.js"></script> 10 <script src="/resources/testdriver-vendor.js"></script> 11 <title>Script to wait for instructions from RemoteContext.</title> 12 13 <body> 14 <script> 15 window.addEventListener("load", async () => { 16 // Find the uuid to communicate with the parent. 17 const uuid = new URLSearchParams(window.location.search).get('uuid'); 18 19 // Wait for the window to have its size computed and become visible, 20 // so that simulated user gestures will be handled properly. 21 while (window.innerWidth == 0) { 22 await new Promise(resolve => requestAnimationFrame(resolve)); 23 } 24 25 // Create a RemoteContext Executor, which will wait in the background 26 // for scripts to execute. 27 window.executor = new Executor(uuid); 28 }); 29 </script> 30 </body>