referrer-policy-origin.https.html (922B)
1 <!DOCTYPE html> 2 <meta name="referrer" content="origin"> 3 <meta name="timeout" content="long"> 4 <title>Test origin referrer</title> 5 <script src="/common/utils.js"></script> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="../resources/utils.js"></script> 9 <script src="resources/utils.js"></script> 10 11 <script src="resources/referrer-test.js"></script> 12 13 <body> 14 <script> 15 setup(() => assertSpeculationRulesIsSupported()); 16 17 // Tests that the referrer on the prerendering navigation request is the 18 // triggering page's origin when the referrer policy is set to origin. 19 // Note that "origin" is a lax referrer policy, but since this is a same-site 20 // prerender, it does not cause the prerender to be aborted. 21 promise_test(async t => { 22 const expected = new URL('', window.origin).href; 23 await referrer_test(expected, token()); 24 }, 'origin referrer'); 25 26 </script>