tor-browser

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

file_iframe_sandbox_k_if9.html (652B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 766282</title>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7 </head>
      8 
      9 <script>
     10  function doStuff() {
     11    window.opener.parent.ok_wrapper(true, "A window opened from within a sandboxed document should inherit the flags of the document, not of the docshell/sandbox attribute.");
     12    self.close();
     13  }
     14 </script>
     15 
     16 <body onload='doStuff()'>
     17  I'm a window opened from the sandboxed document of file_iframe_sandbox_k_if8.html.
     18  I should be able to call ok_wrapper in main test page directly because I should be same-origin with it.
     19 </body>
     20 </html>