file_iframe_sandbox_k_if9.html 652 B

123456789101112131415161718192021
  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>
  9. function doStuff() {
  10. window.opener.parent.ok_wrapper(true, "A window opened from within a sandboxed document should inherit the flags of the document, not of the docshell/sandbox attribute.");
  11. self.close();
  12. }
  13. </script>
  14. <body onload='doStuff()'>
  15. I'm a window opened from the sandboxed document of file_iframe_sandbox_k_if8.html.
  16. I should be able to call ok_wrapper in main test page directly because I should be same-origin with it.
  17. </body>
  18. </html>