summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/speculation-rules/prerender/referrer-policy-no-referrer.html
blob: a2bdda92f13ddbe010230c8bbf1892157ca945bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!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="/speculation-rules/prerender/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>
</body>