tor-browser

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

blob-url-in-child-frame-self-navigate-inherits.sub.html (701B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <head>
      5    <script nonce="abc" src="/resources/testharness.js"></script>
      6    <script nonce="abc" src="/resources/testharnessreport.js"></script>
      7 </head>
      8 
      9 <!-- This tests that navigating a main window to a local scheme preserves the current CSP.
     10     We need to test this in a main window with no parent/opener so we use
     11     a link with target=_blank and rel=noopener. -->
     12 <body>
     13    <iframe src="support/navigate-self-to-blob.html?csp=script-src%20%27nonce-abc%27&report_id={{$id:uuid()}}"></iframe>
     14    <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27nonce-abc%27&reportID={{$id}}'></script>
     15 </body>
     16 
     17 </html>