opaque-origin.html (565B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <body> 6 <script> 7 // Sandboxed iframe forwards messages from its worker, this translates those 8 // messages back to something fetch_tests_from_worker can parse. 9 const channel = new MessageChannel(); 10 onmessage = e => { 11 channel.port2.postMessage(e.data); 12 }; 13 fetch_tests_from_worker(channel.port1); 14 channel.port1.start(); 15 </script> 16 <iframe sandbox="allow-scripts" src="support/sandboxed-tests.html?pipe=sub"></iframe> 17 </body>