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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser_tabstrip.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Popup Blocked Fake Click on Anchor</title>
5 <script>
6 function test() {
7 document.querySelector("a").dispatchEvent(new MouseEvent("click", {ctrlKey: tr ue, metaKey: true}));
8 }
9 </script>
10 </head>
11 <body onload="test()">
12 If the fake click was not blocked then there will be an warning message displaye d in a new tab. Otherwise, the test passes.
13 <a href="data:text/html,<title>Popup Success!</title>you should not see this mes sage if popup blocker is enabled" target="tab"></a>
14 </body>
15 </html>
OLDNEW
« 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