file_iframe_sandbox_k_if7.html (817B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 766282</title> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 7 </head> 8 9 <script type="text/javascript"> 10 function doStuff() { 11 // Check that sandboxed forms browsing context flag NOT set by attempting to submit a form. 12 document.getElementById('a_form').submit(); 13 } 14 </script> 15 16 <body onLoad="doStuff()"> 17 I am not sandboxed directly, but opened from a sandboxed document with at least 18 'allow-scripts allow-popups allow-forms allow-same-origin' 19 20 <form method="get" action="file_iframe_sandbox_window_form_pass.html" id="a_form"> 21 First name: <input type="text" name="firstname"> 22 Last name: <input type="text" name="lastname"> 23 <input type="submit" id="a_button"> 24 </form> 25 </body> 26 </html>