file_iframe_sandbox_k_if7.html 817 B

123456789101112131415161718192021222324252627
  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. <script type="text/javascript">
  9. function doStuff() {
  10. // Check that sandboxed forms browsing context flag NOT set by attempting to submit a form.
  11. document.getElementById('a_form').submit();
  12. }
  13. </script>
  14. <body onLoad="doStuff()">
  15. I am not sandboxed directly, but opened from a sandboxed document with at least
  16. 'allow-scripts allow-popups allow-forms allow-same-origin'
  17. <form method="get" action="file_iframe_sandbox_window_form_pass.html" id="a_form">
  18. First name: <input type="text" name="firstname">
  19. Last name: <input type="text" name="lastname">
  20. <input type="submit" id="a_button">
  21. </form>
  22. </body>
  23. </html>