tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

referrer.https.html (670B)


      1 <!DOCTYPE html>
      2 <title>Test default referrer</title>
      3 <meta name="timeout" content="long">
      4 <script src="/common/utils.js"></script>
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="../resources/utils.js"></script>
      8 <script src="resources/utils.js"></script>
      9 
     10 <script src="resources/referrer-test.js"></script>
     11 
     12 <body>
     13 <script>
     14 setup(() => assertSpeculationRulesIsSupported());
     15 
     16 // Tests that the referrer on the prerendering navigation request is the
     17 // triggering page's URL by default.
     18 promise_test(async t => {
     19  await referrer_test(window.location.href, token());
     20 }, 'default referrer');
     21 </script>