tor-browser

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

redirect.html (844B)


      1 <html>
      2 <head>
      3  <title>redirecting...</title>
      4 
      5  <script type="text/javascript">
      6    function redirect(aURL) {
      7      // We create a listener for this event in browser-test.js which will
      8      // get picked up when specifying --flavor=chrome or --flavor=a11y
      9      var event = new CustomEvent("contentEvent", {
     10        bubbles: true,
     11        detail: {
     12          "data": aURL + location.search,
     13          "type": "loadURI",
     14        },
     15      });
     16      document.dispatchEvent(event);
     17    }
     18 
     19    function redirectToHarness() {
     20      redirect("chrome://mochikit/content/harness.xhtml");
     21    }
     22 
     23    function onLoad() {
     24      setTimeout(redirectToHarness, 0);
     25      // In case the listener is not ready, re-try periodically
     26      setInterval(redirectToHarness, 5000);
     27    }
     28  </script>
     29 </head>
     30 
     31 <body onload="onLoad();">
     32 redirecting...
     33 </body>
     34 </html>