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

Unified Diff: chrome/browser/ui/browser_tabstrip.cc

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
Index: chrome/browser/ui/browser_tabstrip.cc
diff --git a/chrome/browser/ui/browser_tabstrip.cc b/chrome/browser/ui/browser_tabstrip.cc
index 2d3e83927735f5ecea73ad86f54036fa482e9af9..aa308e062e0afeaf249650315e61f0549d14608b 100644
--- a/chrome/browser/ui/browser_tabstrip.cc
+++ b/chrome/browser/ui/browser_tabstrip.cc
@@ -70,8 +70,8 @@ void AddWebContents(Browser* browser,
}
// Handle blocking of popups.
- if ((disposition == NEW_POPUP || disposition == NEW_FOREGROUND_TAB) &&
- !user_gesture &&
+ if ((disposition == NEW_POPUP || disposition == NEW_FOREGROUND_TAB ||
+ disposition == NEW_BACKGROUND_TAB) && !user_gesture &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisablePopupBlocking)) {
// Unrequested popups from normal pages are constrained unless they're in
« no previous file with comments | « chrome/browser/popup_blocker_browsertest.cc ('k') | chrome/test/data/popup_blocker/popup-fake-click-on-anchor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698