file_iframe_sandbox_d_if5.html (633B)
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 <script src="/tests/SimpleTest/EventUtils.js"></script> 8 </head> 9 <script type="application/javascript"> 10 function doTest() { 11 window.parent.postMessage({type: "attempted"}, "*"); 12 sendMouseEvent({type:'click'}, 'anchor'); 13 } 14 </script> 15 <body onload="doTest()"> 16 I am sandboxed with 'allow-scripts allow-same-origin' 17 18 <a href="file_iframe_sandbox_navigation_fail.html?Test 4: Navigate sibling iframe by name:%20" target='if_sibling' id='anchor'> 19 </body> 20 </html>