blob: 4fdc6c954180e8d8eecd01383be84789a27b2a7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!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>
|