tor-browser

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

file_iframe_sandbox_c_if5.html (606B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 341604</title>
      6  <script src="/tests/SimpleTest/EventUtils.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      8 
      9 </head>
     10 <script type="text/javascript">
     11  function ok(result, desc) {
     12    window.parent.ok_wrapper(result, desc);
     13  }
     14 </script>
     15 <body onLoad="doStuff()">
     16  I am sandboxed but with "allow-same-origin"
     17 
     18  <a href = 'javascript:ok(false, "documents sandboxed without allow-scripts should not be able to run script with javascript: URLs");' id='a_link'>click me</a>
     19 </body>
     20 </html>