diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 16:35:49 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 16:35:49 +0000 |
commit | 7f37dd931e8f0512d215ddbc16c4e1e714d39d9d (patch) | |
tree | a25943da348d0e3945e90a75175a82295f66a857 /chrome/test/data/ssl | |
parent | d8107dbea736450d8fe5e20f939824bc614dd449 (diff) | |
download | chromium_src-7f37dd931e8f0512d215ddbc16c4e1e714d39d9d.zip chromium_src-7f37dd931e8f0512d215ddbc16c4e1e714d39d9d.tar.gz chromium_src-7f37dd931e8f0512d215ddbc16c4e1e714d39d9d.tar.bz2 |
This CL adds a test to insure we are not regressing on http://crbug.com/19941
We would crash when an SSL error would happen on a page with no navigation entry.
TEST=Run the test.
BUG=http://crbug.com/19941
Review URL: http://codereview.chromium.org/196115
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/ssl')
-rw-r--r-- | chrome/test/data/ssl/page_with_blank_target.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/test/data/ssl/page_with_blank_target.html b/chrome/test/data/ssl/page_with_blank_target.html new file mode 100644 index 0000000..46df5a2 --- /dev/null +++ b/chrome/test/data/ssl/page_with_blank_target.html @@ -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> + |