tor-browser

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

file_iframe_sandbox_window_navigation_fail.html (518B)


      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 
      9 <script>
     10 function doStuff() {
     11  var testContext = unescape(location.search.substring(1));
     12  window.opener.postMessage({ok: false, desc: testContext + "a sandboxed document should not be able to navigate a window it hasn't opened.", addToAttempted: false}, "*");
     13  window.close();
     14 }
     15 </script>
     16 
     17 <body onLoad="doStuff()">
     18 FAIL
     19 </body>
     20 </html>