tor-browser

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

file_iframe_sandbox_a_if2.html (687B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 341604</title>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7 </head>
      8 
      9 <script type="text/javascript">
     10 function doStuff() {
     11  // should NOT be able to execute scripts
     12  window.parent.parent.postMessage({ok: false, desc: "a document within an iframe sandboxed with sandbox='' should NOT be able to execute scripts"}, "*");
     13 }
     14 </script>
     15 
     16 <body onLoad="doStuff()">
     17  I am NOT sandboxed or am sandboxed with "allow-scripts" but am contained within an iframe sandboxed with sandbox = ""
     18  or am sandboxed with sandbox='' inside an iframe sandboxed with "allow-scripts"
     19 </body>
     20 </html>