sandbox_022-manual.htm (1678B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>HTML5 Sandbox: allow sandbox iframe to navigate their top-level browsing context if sandbox="allow-top-navigation".</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#sandboxed-scripts-browsing-context-flag" /> 8 <meta name="assert" content="Allow sandbox iframe to navigate their top-level browsing context if sandbox='allow-top-navigation'." /> 9 <script src="support/sandbox_helper.js" type="text/javascript"></script> 10 </head> 11 <body> 12 <pre>Description: Allow sandbox iframe to navigate its top-level browsing context if sandbox='allow-top-navigation'.</pre> 13 <table id='testtable' border='1'> 14 <tr> 15 <td>Test Result</td> 16 <td>Test Assertion</td> 17 </tr> 18 <tr> 19 <td id='test_0_result'>Manual</td> 20 <td id='test_0_assertion'> 21 <div>Steps:</div> 22 <div>1. Click link "Open the link in top window".</div> 23 <br /> 24 <div>Test passes if there is no red on the page and no top-level navigation after following the above steps.</div> 25 </td> 26 </tr> 27 </table> 28 <br /> 29 <div id="testframe"> 30 <pre>iframe with sandbox="allow-top-navigation"</pre> 31 <iframe src="support/iframe_sandbox_022.htm" sandbox="allow-top-navigation" style="height: 100px; width: 450px;"></iframe> 32 </div> 33 <script type="text/javascript"> 34 DisableTestForNonSupportingBrowsers(); 35 </script> 36 </body> 37 </html>