tor-browser

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

file_iframe_sandbox_top_navigation_pass.html (563B)


      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>
      9 function doStuff() {
     10  var testContext = unescape(location.search.substring(1));
     11  var bc = new BroadcastChannel("test_iframe_sandbox_navigation");
     12  bc.postMessage({ok: true, desc: testContext + "top navigation should be allowed by a document sandboxed with 'allow-top-navigation'"});
     13  bc.close();
     14  window.close();
     15 }
     16 </script>
     17 <body onLoad="doStuff()">
     18 PASS
     19 </body>
     20 </html>