Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8474)

Unified Diff: chrome/test/data/popup_blocker/popup-openersuppressed.html

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/popup_blocker/popup-openersuppressed.html
diff --git a/chrome/test/data/popup_blocker/popup-openersuppressed.html b/chrome/test/data/popup_blocker/popup-openersuppressed.html
new file mode 100644
index 0000000000000000000000000000000000000000..e8e0024b0ca2744222dbf22e018028f94af9e411
--- /dev/null
+++ b/chrome/test/data/popup_blocker/popup-openersuppressed.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+<title>
+ Check that the window.opener is not set if it should be suppressed.
+</title>
+<script>
+function test() {
+ document.querySelector("a").dispatchEvent(new MouseEvent("click", {ctrlKey: true, metaKey: true}));
+}
+</script>
+</head>
+<body onload="test()">
+pop-up test page
+<a href="check-openersuppressed.html" target="tab" rel="noreferrer"></a>
Charlie Reis 2013/07/31 17:16:16 The process swapping logic doesn't kick in if targ
jochen (gone - plz use gerrit) 2013/07/31 18:30:52 Done.
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698