tor-browser

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

page_with_resource.sub.html (832B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>Clear-Site-Data</title>
      5    <script src="test_utils.sub.js"></script>
      6  </head>
      7  <body>
      8    <script>
      9      var scheme = location.search.match("scheme=([^&$]+)")[1];
     10 
     11      // TODO(@msramek): Move this logic to TestUtils.
     12      var base_url = location.origin
     13          .replace(/https?/, scheme)
     14          .replace(/:[0-9]+/, ":" + (scheme == "https" ? {{ports[https][0]}}
     15                                                       : {{ports[http][0]}})) +
     16          "/clear-site-data/support/";
     17 
     18      var image = new Image();
     19      image.onload = image.onerror = function() {
     20        location.href = base_url + "send_report.html";
     21      }
     22 
     23      // TODO(@msramek): Move this logic to TestUtils.
     24      image.src = base_url + "echo-clear-site-data.py?storage";
     25    </script>
     26  </body>
     27 </html>