file_iframe_sandbox_open_window_fail.html (434B)
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 </head> 8 9 <body onLoad="doStuff()"> 10 I should NOT be opened by a sandboxed iframe via any method 11 </body> 12 </html> 13 14 <script> 15 function doStuff() { 16 window.opener.ok(false, "sandboxed documents should NOT be able to open windows"); 17 self.close(); 18 } 19 </script>