tor-browser

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

icons-member-csp-fail-manual.sub.html (905B)


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