tor-browser

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

file_block_toplevel_data_navigation2.html (500B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Toplevel data navigation</title>
      6 </head>
      7 <body>
      8 test2: data: URI in iframe tries to window.open(data:, _blank);<br/>
      9 <iframe id="testFrame" src=""></iframe>
     10 <script>
     11  let DATA_URI = `data:text/html,<body><script>
     12    var win = window.open("data:text/html,<body>toplevel data: URI navigations should be blocked</body>", "_blank");
     13    <\/script></body>`;
     14  document.getElementById('testFrame').src = DATA_URI;
     15 </script>
     16 </body>
     17 </html>