Automatic update from web-platform-tests Speculation Rules prerender tests should check for support We're seeing timeouts on the STP bots, because spending over an hour timing out on speculation rules tests just eats into the timeout. -- wpt-commits: 9f7999f4b3dd412a338f3231228e64230d6a6531 wpt-pr: 59217
34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<!--
|
|
This file is marked as "tentative" until:
|
|
* The "clone & swap" mechanism for session storage in prerendering described in
|
|
https://github.com/whatwg/storage/issues/119 is added to the specification.
|
|
-->
|
|
<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/utils.js"></script>
|
|
<script src="resources/session-storage-utils.js"></script>
|
|
<body>
|
|
<script>
|
|
setup(() => assertSpeculationRulesIsSupported('prerender'));
|
|
|
|
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>
|