mirror of
https://github.com/servo/servo
synced 2026-05-15 03:16:47 +02:00
21 lines
614 B
HTML
21 lines
614 B
HTML
<!DOCTYPE html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="utils.js"></script>
|
|
<body>
|
|
<script>
|
|
window.onmessage = function(e) {
|
|
assert_equals(e.data.name, 'crossOriginIsolated');
|
|
assert_true(e.data.value);
|
|
|
|
const testChannel = new PrerenderChannel('test-channel');
|
|
testChannel.postMessage(self.crossOriginIsolated);
|
|
testChannel.close();
|
|
};
|
|
|
|
assert_true(document.prerendering);
|
|
const frame = document.createElement('iframe');
|
|
frame.src = './cross-origin-isolated-iframe.https.html';
|
|
document.body.append(frame);
|
|
</script>
|
|
</body> |