tor-browser

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

file_cors_mixedcontent.html (857B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 
      4 <head>
      5  <meta charset="utf-8">
      6 
      7  <script>
      8    addEventListener("StartFetch", async function() {
      9      let comResult;
     10      let orgResult;
     11 
     12      await Promise.all([
     13        fetch("http://example.com/")
     14          .then(() => {
     15            comResult = "success";
     16          })
     17          .catch(() => {
     18            comResult = "error";
     19          }),
     20        fetch("http://example.org/")
     21          .then(() => {
     22            orgResult = "success";
     23          })
     24          .catch(() => {
     25            orgResult = "error";
     26          }),
     27      ]);
     28 
     29      window.dispatchEvent(new CustomEvent("FetchEnded", {
     30        detail: { comResult, orgResult }
     31      }));
     32 
     33      })
     34  </script>
     35 </head>
     36 
     37 <body>
     38  <h2>Https-Only: CORS and MixedContent tests</h2>
     39  <p><a href="https://bugzilla.mozilla.org/bug/1659505">Bug 1659505</a></p>
     40 </body>
     41 
     42 </html>