file_iframe_sandbox_d_if17.html (656B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 838692</title> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 7 </head> 8 9 <script type="application/javascript"> 10 var testContext = "Test 17: navigate _self with window.open(): "; 11 12 function doTest() { 13 try { 14 window.open("file_iframe_sandbox_navigation_pass.html?" + escape(testContext), "_self"); 15 } catch(error) { 16 window.parent.postMessage({ok: false, desc: testContext + "error thrown during window.open(..., \"_self\")"}, "*"); 17 } 18 } 19 </script> 20 21 <body onload="doTest()"> 22 I am sandboxed with 'allow-scripts' 23 </body> 24 </html>