tor-browser

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

file_iframe_sandbox_a_if8.html (817B)


      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 src="/tests/SimpleTest/EventUtils.js"></script>
      8 </head>
      9 <script>
     10 function doSubload() {
     11  var if_9 = document.getElementById('if_9');
     12  if_9.src = 'file_iframe_sandbox_a_if9.html';
     13 }
     14 
     15 window.doSubload = doSubload;
     16 
     17 </script>
     18 <body>
     19  I am sandboxed but with "allow-scripts allow-same-origin". After my initial load, "allow-same-origin" is removed
     20  and then I load file_iframe_sandbox_a_if9.html, which attemps to call a function in window.top. This should
     21  succeed since the new sandbox flags shouldn't have taken affect on me until I'm reloaded.
     22 
     23  <iframe id='if_9' src='about:blank' height="10" width="10"></iframe>
     24 </body>
     25 </html>