tor-browser

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

sandbox_020-manual.htm (1593B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>HTML5 Sandbox: Nested iframes cannot have less sandbox restrictions than their most restrictive ancestor iframe.</title>
      5    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
      6    <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      7    <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#attr-iframe-sandbox" />
      8    <meta name="assert" content="Nested iframes cannot have less sandbox restrictions than their most restrictive ancestor iframe." />
      9    <script src="support/sandbox_helper.js" type="text/javascript"></script>
     10 </head>
     11 <body>
     12    <pre>Description: Nested iframes cannot have less sandbox restrictions than their most restrictive ancestor iframe.</pre>
     13    <div>This test is to verify script is blocked inside nested iframes if the top-most sandbox iframe has no 'allow-scripts' token.</div>
     14    <br />
     15    <table id='testtable' border='1'>
     16        <tr>
     17            <td>Test Result</td>
     18            <td>Test Assertion</td>
     19        </tr>
     20        <tr>
     21            <td id='test_0_result'>Manual</td>
     22            <td id='test_0_assertion'>Test passes if there is no red on the page.</td>
     23        </tr>
     24    </table>
     25    <br />
     26    <div id="testframe">
     27        <div style="font-weight:bold">Top-most iframe with sandbox=""</div>
     28        <iframe id="iframe1" name="iframe1" src="support/iframe_sandbox_020.htm" sandbox="" style="height: 330px; width: 400px;"></iframe>
     29    </div>
     30    <script type="text/javascript">
     31        DisableTestForNonSupportingBrowsers();
     32    </script>
     33 </body>
     34 </html>