window.html (426B)
1 <body> 2 <script src="/common/get-host-info.sub.js"></script> 3 <script src="../test-helpers.sub.js"></script> 4 <script> 5 const HTTPS_PREFIX = get_host_info().HTTPS_ORIGIN + base_path(); 6 7 window.onmessage = event => { 8 window.location = HTTPS_PREFIX + 'report?result=' + event.data; 9 }; 10 11 const frame = document.createElement('iframe'); 12 frame.src = HTTPS_PREFIX + 'sender.html'; 13 document.body.appendChild(frame); 14 </script> 15 </body>