Files
sousa-gecko/testing/web-platform/tests/speculation-rules/prefetch/anonymous/anonymous-client.https.html
T
Yoav Weiss 42a1c83e5e Bug 1992759 [wpt PR 55251] - Reorder the speculation rules tests, a=testonly
Automatic update from web-platform-tests
Reorder the speculation rules tests (#55251)

--

wpt-commits: 7fac9521e23f41f50570e4e8fdcd2c0f56b938aa
wpt-pr: 55251
2025-10-20 16:38:20 +00:00

21 lines
885 B
HTML

<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
<script src="/common/utils.js"></script>
<script src="../../resources/utils.js"></script>
<script src="../resources/utils.sub.js"></script>
<script>
setup(() => assertSpeculationRulesIsSupported());
promise_test(async t => {
let agent = await spawnWindow(t);
let nextUrl = agent.getExecutorURL({ hostname: CROSS_ORIGIN_HOST_THAT_WORKS_WITH_ACIWCO, page: 2 });
await agent.forceSinglePrefetch(nextUrl, { requires: ["anonymous-client-ip-when-cross-origin"] });
await agent.navigate(nextUrl);
let requestHeaders = await agent.getRequestHeaders();
assert_prefetched_anonymous_client_ip(requestHeaders);
}, "test anonymous-client url prefetch for cross origin pages");
</script>