Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 4 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /speculation-rules/prerender/session-storage.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<!--
This file is marked as "tentative" until:
* The "clone & swap" mechanism for session storage in prerendering described in
-->
<title>Same-origin prerendering can access sessionStorage</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="resources/utils.js"></script>
<script src="resources/session-storage-utils.js"></script>
<body>
<script>
const uid = token();
session_storage_test(
'session-storage-carry-over-to-prerender-page.html', uid);
session_storage_test(
'session-storage-no-leak-to-initiator-page.html', uid);
session_storage_test(
'session-storage-isolated-while-prerendering.html', uid);
session_storage_test(
'session-storage-swap-after-activate.html', uid);
</script>
</body>