tor-browser

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

file_iframe_sandbox_d_if7.html (631B)


      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 <script type="application/javascript">
      9 function doTest() {
     10  try {
     11    window.parent.ok_wrapper(false, "a sandboxed document when navigated should still NOT be same-origin with its parent");
     12  } catch(error) {
     13    window.parent.postMessage({ok: true, desc: "sandboxed document's attempt to access parent after navigation blocked, as not same-origin."}, "*");
     14  }
     15 }
     16 </script>
     17 <body onload="doTest()">
     18  I am sandboxed with 'allow-scripts'
     19 </body>
     20 </html>