tor-browser

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

style-src-multiple-policies-multiple-hashing-algorithms.html (786B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Multiple policies with different hashing algorithms still work.</title>
      5  <meta name="timeout" content="long">
      6  <script src='/resources/testharness.js'></script>
      7  <script src='/resources/testharnessreport.js'></script>
      8 </head>
      9 <body>
     10  <script>
     11    var t = async_test("Test that style loads if allowed by proper hash values");
     12    document.addEventListener("securitypolicyviolation", t.unreached_func("Should not have triggered a security event"));
     13  </script>
     14 
     15  <!-- test will time out if this style is not allowed to load -->
     16  <style onload="t.done();" onerror="t.unreached_func('Should have loaded the style');">p {color:blue;}</style>
     17 
     18  <script async defer src='../support/checkReport.sub.js?reportExists=false'></script>
     19 </body>
     20 </html>