tor-browser

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

file_iframe_sandbox_a_if11.html (748B)


      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  <script>
      8    function doStuff() {
      9      try {
     10        window.parent.parent.ok_wrapper(false, "a frame inside a sandboxed iframe should NOT be same origin with the iframe's parent");
     11      }
     12      catch (e) {
     13        window.parent.parent.postMessage({ok: true, desc: "a frame inside a sandboxed iframe is not same origin with the iframe's parent"}, "*");
     14      }
     15     }
     16  </script>
     17 </head>
     18 <frameset>
     19  <frame onload='doStuff()' src="file_iframe_sandbox_a_if12.html">
     20 </frameset>
     21 I'm a &lt;frame&gt; inside an iframe which is sandboxed with 'allow-scripts allow-forms'
     22 </html>