tor-browser

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

strict-dynamic-elem-allowed-src-blocked.html (685B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <head>
      5    <meta http-equiv="Content-Security-Policy" content="script-src-elem 'strict-dynamic' 'nonce-abc';
      6    script-src 'nonce-abc';">
      7    <script nonce='abc' src="/resources/testharness.js"></script>
      8    <script nonce='abc' src="/resources/testharnessreport.js"></script>
      9 </head>
     10 
     11 <body>
     12    <script nonce='abc'>
     13      var t = async_test("Should not fire a security policy violation event");
     14      window.addEventListener('securitypolicyviolation', t.unreached_func("Should not have fired a spv event"));
     15 
     16      var s = document.createElement('script');
     17      s.src = 'support/t_done.js';
     18      document.head.appendChild(s);
     19    </script>
     20 </body>
     21 
     22 </html>