tor-browser

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

icons-member-cors-manual.sub.html (790B)


      1 <!DOCTYPE html>
      2 <title>Test that icons member is supported (via CORS)</title>
      3 <link rel="help" href="https://w3c.github.io/manifest#icons-member" />
      4 <link rel="manifest" href="resources/icons-member-cors.sub.webmanifest" />
      5 <script src="resources/icons-member-manual.js"></script>
      6 <h1>Testing support for icons member (via CORS)</h1>
      7 <script>
      8    // Force the port of the origin to be ports[https][0] (likely :8443)
      9    // we treat the port ports[https][1] (likely :8444) to be another origin that we fail against
     10    if (window.location.origin !== "https://{{host}}:{{ports[https][0]}}") {
     11        window.location = new URL(window.location.pathname, "https://{{host}}:{{ports[https][0]}}")
     12    }
     13 </script>
     14 <p>
     15    To pass, the icon must show a white check mark on a green background.
     16 </p>