mirror of
https://github.com/servo/servo
synced 2026-05-13 10:27:03 +02:00
18 lines
489 B
HTML
18 lines
489 B
HTML
<!DOCTYPE html>
|
|
<title>Prerendered iframe</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/speculation-rules/prerender/resources/utils.js"></script>
|
|
<body>
|
|
<script>
|
|
assert_true(document.prerendering);
|
|
|
|
const params = new URLSearchParams(location.search);
|
|
const uid = params.get('uid');
|
|
|
|
const bc = new PrerenderChannel('iframe-channel', uid);
|
|
bc.postMessage('prerender success');
|
|
bc.close();
|
|
</script>
|
|
</body>
|