cross-origin-isolated.https.html (614B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <script src="utils.js"></script> 5 <body> 6 <script> 7 window.onmessage = function(e) { 8 assert_equals(e.data.name, 'crossOriginIsolated'); 9 assert_true(e.data.value); 10 11 const testChannel = new PrerenderChannel('test-channel'); 12 testChannel.postMessage(self.crossOriginIsolated); 13 testChannel.close(); 14 }; 15 16 assert_true(document.prerendering); 17 const frame = document.createElement('iframe'); 18 frame.src = './cross-origin-isolated-iframe.https.html'; 19 document.body.append(frame); 20 </script> 21 </body>