tor-browser

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

fallback.sub.html (756B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>HTTPS Upgrades: Fallback.</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7    <script src="/common/get-host-info.sub.js"></script>
      8 
      9  </head>
     10  <body>
     11    <script>
     12      setup({ single_test: true });
     13      // If HTTPS upgrades are enabled, this will fail to load since this test is http only,
     14      // and should load properly once a fallback is triggered.
     15      var url = new URL("http://{{host}}:{{ports[http][0]}}/https-upgrades/resources/pass.html")
     16      window.onmessage = function(event) {
     17          if (event.data === "pass") {
     18              done();
     19          }
     20      }
     21      win = window.open(url)
     22    </script>
     23  </body>
     24 </html>