file_iframe_sandbox_d_if16.html 666 B

1234567891011121314151617181920212223
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Test for Bug 838692</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.parent.postMessage({type: "attempted"}, "*");
  12. sendMouseEvent({type:'click'}, 'anchor');
  13. }
  14. </script>
  15. <body onload="doTest()">
  16. I am sandboxed with 'allow-same-origin allow-scripts'
  17. <a href="file_iframe_sandbox_navigation_fail.html?Test 16: Navigate parent/ancestor by name:%20" target='if_parent' id='anchor'>
  18. </body>
  19. </html>