file_iframe_sandbox_e_if5.html (564B)
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 navigateAway() { 11 document.getElementById("anchor").click(); 12 } 13 </script> 14 <body onload="navigateAway()"> 15 I am sandboxed with 'allow-scripts and allow-top-navigation' 16 17 <a href="file_iframe_sandbox_top_navigation_pass.html" target='_top' id='anchor'>Click me</a> 18 </body> 19 </html>