file_iframe_sandbox_d_if5.html 656 B

123456789101112131415161718192021
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Test for Bug 341604</title>
  6. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  7. <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  8. </head>
  9. <script type="application/javascript">
  10. function doTest() {
  11. window.parent.postMessage({type: "attempted"}, "*");
  12. sendMouseEvent({type:'click'}, 'anchor');
  13. }
  14. </script>
  15. <body onload="doTest()">
  16. I am sandboxed with 'allow-scripts allow-same-origin'
  17. <a href="file_iframe_sandbox_navigation_fail.html?Test 4: Navigate sibling iframe by name:%20" target='if_sibling' id='anchor'>
  18. </body>
  19. </html>