file_iframe_sandbox_e_if6.html (553B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 341604</title> 6 <script src="/tests/SimpleTest/EventUtils.js"></script> 7 </head> 8 <script type="application/javascript"> 9 function doTest() { 10 document.getElementById('anchor').href = "file_iframe_sandbox_top_navigation_fail.html" + location.search; 11 window.top.opener.postMessage({type: "attempted"}, "*"); 12 sendMouseEvent({type:'click'}, 'anchor'); 13 } 14 </script> 15 <body onload="doTest()"> 16 I am sandboxed with 'allow-scripts' 17 18 <a target='_top' id='anchor'> 19 </body> 20 </html>