summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/speculation-rules/prerender/referrer-policy-no-referrer.html
blob: a0d1763f95bd749c7ed3fe49a3f22348d591b6b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<meta name="referrer" content="no-referrer">
<meta name="timeout" content="long">
<title>Test noreferrer</title>
<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 not sent
// when the triggering page's referrer policy is set to no-referrer.
promise_test(async t => {
  await referrer_test('(none)', token());
}, 'no referrer');
</script>