file_iframe_sandbox_form_fail.html (536B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 341604</title> 6 <script src="/tests/SimpleTest/SimpleTest.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 8 </head> 9 10 <body onLoad="doStuff()"> 11 I should NOT be loaded by a form submit from a sandbox without 'allow-forms' 12 </body> 13 </html> 14 15 <script> 16 function doStuff() { 17 window.parent.postMessage({ok: false, desc: "documents sandboxed without allow-forms should NOT be able to submit forms"}, "*"); 18 } 19 </script>