sandbox_010-manual.htm (1708B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>HTML5 Sandbox: Block window.open() API inside iframe with sandbox attribute.</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-navigation-browsing-context-flag" /> 8 <meta name="assert" content="Block window.open() API inside iframe with sandbox attribute." /> 9 <script src="support/sandbox_helper.js" type="text/javascript"></script> 10 </head> 11 <body> 12 <pre>Description: Block window.open() API inside iframe with sandbox attribute.</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 button "Click here to call window.open() API".</div> 23 <br /> 24 <div>Test passes if there is no red on the page and no new window opens. The user agent may offer the user the option of allowing a new window to open.</div> 25 </td> 26 </tr> 27 </table> 28 <br /> 29 <div id="testframe"> 30 <pre>iframe with sandbox="allow-scripts allow-same-origin allow-forms allow-top-navigation"</pre> 31 <iframe src="support/iframe_sandbox_010.htm" sandbox="allow-scripts allow-same-origin allow-forms allow-top-navigation" style="height: 100px; width: 450px;"></iframe> 32 </div> 33 <script type="text/javascript"> 34 DisableTestForNonSupportingBrowsers(); 35 </script> 36 </body> 37 </html>