file_iframe_sandbox_d_if2.html (813B)
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 // needed to forward the message to the main test page 11 window.addEventListener("message", receiveMessage); 12 13 function receiveMessage(event) { 14 window.parent.postMessage(event.data, "*"); 15 } 16 17 function doTest() { 18 sendMouseEvent({type:'click'}, 'anchor'); 19 } 20 </script> 21 <body onload="doTest()"> 22 I am sandboxed with 'allow-scripts' 23 24 <iframe name="foo" src="file_iframe_sandbox_navigation_start.html" height="10" width="10"></iframe> 25 26 <a href="file_iframe_sandbox_navigation_pass.html?Test 2:%20" target='foo' id='anchor'> 27 </body> 28 </html>