tor-browser

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

iframe-reload-TAO.html (716B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8" />
      5 <script src="/resources/testharness.js"></script>
      6 <script src="resource-loaders.js"></script>
      7 <script src="entry-invariants.js"></script>
      8 <script src="/common/get-host-info.sub.js"></script>
      9 <body>
     10 <script>
     11  const {HTTP_NOTSAMESITE_ORIGIN} = get_host_info();
     12  const font_url = `${HTTP_NOTSAMESITE_ORIGIN}/resource-timing/resources/cors-ahem.py`;
     13  if (location.hash === '#check') {
     14    attribute_test(
     15      load.font, font_url,
     16      invariants.assert_tao_pass_no_redirect_http,
     17      "Test that TAO headers are reused on reloads.");
     18  } else {
     19    window.onload = () => {
     20      location.hash = 'check';
     21      location.reload();
     22    };
     23  }
     24 </script>
     25 </body>