tor-browser

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

prefetch-allowed-by-default.html (680B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4  <head>
      5    <script src='/resources/testharness.js'></script>
      6    <script src='/resources/testharnessreport.js'></script>
      7    <script src='/common/utils.js'></script>
      8    <script src='/content-security-policy/support/testharness-helper.js'></script>
      9    <script src='/content-security-policy/support/prefetch-helper.js'></script>
     10 
     11    <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'">
     12    <script>
     13      promise_test(async t => {
     14        assert_true(await try_to_prefetch("/common/dummy.xml", t));
     15      }, 'Prefetch should succeed when allowed by default-src');
     16    </script>
     17  </head>
     18 
     19  <body>
     20  </body>
     21 
     22 </html>