file_iframe_sandbox_k_if4.html (1393B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 766282</title> 6 <script src="/tests/SimpleTest/EventUtils.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 8 </head> 9 10 <script type="text/javascript"> 11 function doStuff() { 12 // Open a new window via target="_blank", target="BC766282_if5" and window.open(). 13 sendMouseEvent({type:'click'}, 'target_blank_if5'); 14 sendMouseEvent({type:'click'}, 'target_BC766282_if5'); 15 16 window.open("file_iframe_sandbox_k_if5.html"); 17 18 // Open a new window via target="_blank", target="BC766282_if7" and window.open(). 19 sendMouseEvent({type:'click'}, 'target_blank_if7'); 20 sendMouseEvent({type:'click'}, 'target_BC766282_if7'); 21 22 window.open("file_iframe_sandbox_k_if7.html"); 23 } 24 </script> 25 26 <body onLoad="doStuff()"> 27 I am sandboxed with "allow-scripts allow-popups allow-same-origin allow-forms allow-top-navigation". 28 <a href="file_iframe_sandbox_k_if5.html" target="_blank" id="target_blank_if5" rel="opener">open window</a> 29 <a href="file_iframe_sandbox_k_if5.html" target="BC766282_if5" id="target_BC766282_if5">open window</a> 30 31 <a href="file_iframe_sandbox_k_if7.html" target="_blank" id="target_blank_if7" rel="opener">open window</a> 32 <a href="file_iframe_sandbox_k_if7.html" target="BC766282_if7" id="target_BC766282_if7">open window</a> 33 </body> 34 </html>