tor-browser

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

file_parent_location_js.html (543B)


      1 <html>
      2 <head>
      3  <title>Test setting parent location to javascript:</title>
      4  <meta http-equiv="Content-Security-Policy" content="script-src 'nonce-bug1550414'">
      5  <script nonce="bug1550414">
      6    document.addEventListener("securitypolicyviolation", (e) => {
      7      window.parent.postMessage({
      8        blockedURI: e.blockedURI,
      9        violatedDirective: e.violatedDirective,
     10        originalPolicy: e.originalPolicy,
     11      }, '*');
     12    });
     13  </script>
     14 </head>
     15 <body>
     16  <iframe src="file_iframe_parent_location_js.html"></iframe>
     17 </body>
     18 </html>