summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/speculation-rules/prerender/referrer.html
blob: c0ecc845b56e6e67b4c62f32cf778fd6ab6b9474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<title>Test default referrer</title>
<meta name="timeout" content="long">
<script src="/common/utils.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/utils.js"></script>
<script src="resources/utils.js"></script>

<script src="resources/referrer-test.js"></script>

<body>
<script>
setup(() => assertSpeculationRulesIsSupported());

// Tests that the referrer on the prerendering navigation request is the
// triggering page's URL by default.
promise_test(async t => {
  await referrer_test(window.location.href, token());
}, 'default referrer');
</script>