file_iframe_sandbox_navigation_fail.html (489B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 341604</title> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 7 </head> 8 <body onLoad="doStuff()"> 9 FAIL 10 </body> 11 <script> 12 function doStuff() { 13 var testContext = unescape(location.search.substring(1)); 14 window.parent.postMessage({ok: false, desc: testContext + "this navigation should NOT be allowed by a sandboxed document", addToAttempted: false}, "*"); 15 } 16 </script> 17 </html>