empty-link-target.html 854 B

12345678910111213141516171819202122232425262728
  1. <html>
  2. <head><script>
  3. function print(message) {
  4. var paragraph = document.createElement("p");
  5. paragraph.appendChild(document.createTextNode(message));
  6. document.getElementById("console").appendChild(paragraph);
  7. }
  8. function test()
  9. {
  10. if (window.testRunner)
  11. testRunner.dumpAsText();
  12. var e = document.createEvent("MouseEvents");
  13. e.initEvent("click", true, false);
  14. document.getElementById('a').dispatchEvent(e);
  15. print("PASS");
  16. }
  17. </script></head>
  18. <body onload="test()">
  19. <p>Bug: <a href="http://bugs.webkit.org/show_bug.cgi?id=6382">REGRESSION: Repro crash when clicking link with target="_blank"</a></p>
  20. <p>If the test passes, you will see a PASS message below. (It's normal for a new window to open.)</p>
  21. <hr>
  22. <a id="a" href="resources/popup200x200.html" target="_blank"></a>
  23. <div id='console'/>
  24. </body>
  25. </html>