tor-browser

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

file_iframe_sandbox_e_if11.html (666B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 838692</title>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7 </head>
      8 <script>
      9  function doTest() {
     10    var testContext = location.search.substring(1);
     11    try {
     12      window.open("file_iframe_sandbox_top_navigation_pass.html?" + testContext, "_top");
     13    } catch(error) {
     14      window.top.opener.postMessage({ok: false, desc: unescape(testContext) + "error thrown during window.open(..., \"_top\")"}, "*");
     15      window.top.close();
     16    }
     17  }
     18 </script>
     19 <body onload="doTest()">
     20  I am sandboxed with 'allow-scripts and allow-top-navigation'
     21 </body>
     22 </html>