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

Unified Diff: chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html

Issue 13874004: Also treat new background tabs as pop-ups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 7 years, 8 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
« no previous file with comments | « chrome/browser/ui/browser_tabstrip.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html
diff --git a/chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html b/chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html
new file mode 100644
index 0000000000000000000000000000000000000000..c9098fb7f3dd8cf262a0c9c2196be998bc7ab531
--- /dev/null
+++ b/chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Popup Blocked Fake Click on Anchor</title>
+<script>
+function test() {
+ document.querySelector("a").dispatchEvent(new MouseEvent("click", {ctrlKey: true, metaKey: true}));
+}
+</script>
+</head>
+<body onload="test()">
+If the fake click was not blocked then there will be an warning message displayed in a new tab. Otherwise, the test passes.
+<a href="data:text/html,<title>Popup Success!</title>you should not see this message if popup blocker is enabled" target="tab"></a>
+</body>
+</html>
« no previous file with comments | « chrome/browser/ui/browser_tabstrip.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698