summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/click-noreferrer-links.html
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-26 15:55:46 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-26 15:55:46 +0000
commit007a848b67a4a880598d6c76c0c9d94d56d0d8e0 (patch)
tree0f216a696a3b5fb6c88a6db5cb2cfd2bb6f2608e /chrome/test/data/click-noreferrer-links.html
parente959f0b97dba7228c76b7722cf4227fdf6416524 (diff)
downloadchromium_src-007a848b67a4a880598d6c76c0c9d94d56d0d8e0.zip
chromium_src-007a848b67a4a880598d6c76c0c9d94d56d0d8e0.tar.gz
chromium_src-007a848b67a4a880598d6c76c0c9d94d56d0d8e0.tar.bz2
Second attempt to swap processes on rel=noreferrer, target=blank links.
The test timed out on one of the bots last time. This change tries to fix that, and it breaks down the test into multiple tests to isolate the problem in case it isn't fixed. No changes to code outside the test and the test HTML file. Previous review at http://codereview.chromium.org/284015. BUG=24447 TEST=RenderViewHostManagerTest.*SwapProcess* Review URL: http://codereview.chromium.org/328017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/click-noreferrer-links.html')
-rw-r--r--chrome/test/data/click-noreferrer-links.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/test/data/click-noreferrer-links.html b/chrome/test/data/click-noreferrer-links.html
new file mode 100644
index 0000000..f6ae295
--- /dev/null
+++ b/chrome/test/data/click-noreferrer-links.html
@@ -0,0 +1,37 @@
+<html>
+
+ <head><title>Click noreferrer links</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 clickNoRefTargetBlankLink() {
+ return simulateClick(document.getElementById("noref_and_tblank_link"));
+ }
+
+ function clickTargetBlankLink() {
+ return simulateClick(document.getElementById("tblank_link"));
+ }
+
+ function clickNoRefLink() {
+ return simulateClick(document.getElementById("noref_link"));
+ }
+
+ </script>
+ </head>
+
+<a href="https://127.0.0.1:9443/files/title2.html" id="noref_and_tblank_link"
+ rel="noreferrer" target="_blank">rel=noreferrer and target=_blank</a><br>
+<a href="https://127.0.0.1:9443/files/title2.html" id="tblank_link"
+ target="_blank">target=_blank</a><br>
+<a href="https://127.0.0.1:9443/files/title2.html" id="noref_link"
+ rel="noreferrer">rel=noreferrer</a><br>
+
+</html>
+