Index: chrome/test/data/ssl/page_with_blank_target.html |
=================================================================== |
--- chrome/test/data/ssl/page_with_blank_target.html (revision 0) |
+++ chrome/test/data/ssl/page_with_blank_target.html (revision 0) |
@@ -0,0 +1,24 @@ |
+<html> |
+ |
+ <head><title>This is a simple test page</title> |
+ <script> |
+ function simulateClick(target) { |
+ var evt = document.createEvent("MouseEvents"); |
+ evt.initMouseEvent("click", true, true, window, |
+ 0, 0, 0, 0, 0, false, false, |
+ false, false, 0, null); |
+ |
+ return target.dispatchEvent(evt); |
+ } |
+ |
+ function navigateInNewTab() { |
+ return simulateClick(document.getElementById("bad_link")); |
+ } |
+ |
+ </script> |
+ </head> |
+ |
+<a href="https://127.0.0.1:9666/files/ssl/google.html" id="bad_link" target="_blank">This is a bad link</a> |
+ |
+</html> |
+ |