file_iframe_sandbox_e_if8.html (748B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Tests for Bug 838692</title> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 7 <script src="/tests/SimpleTest/EventUtils.js"></script> 8 </head> 9 10 <script> 11 function doTest() { 12 // Try to navigate top using its name (e_if7). We should not be able to do this as allow-top-navigation is not specified. 13 window.top.opener.postMessage({type: "attempted"}, "*"); 14 sendMouseEvent({type:'click'}, 'navigate_top'); 15 } 16 </script> 17 18 <body onload="doTest()"> 19 I am sandboxed but with "allow-scripts" 20 21 <a href="file_iframe_sandbox_top_navigation_fail.html?Test 15: Navigate top by name:%20" target="e_if7" id="navigate_top">navigate top</a> 22 </body> 23 </html>