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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 23749006: Merge 222640 "Use the top-level URL for popup blocking." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 years, 3 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/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 223110)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -1962,6 +1962,7 @@
bool ChromeContentBrowserClient::CanCreateWindow(
const GURL& opener_url,
+ const GURL& opener_top_level_frame_url,
const GURL& source_origin,
WindowContainerType container_type,
const GURL& target_url,
@@ -2030,8 +2031,8 @@
if (!user_gesture && !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisablePopupBlocking)) {
- if (content_settings->GetContentSetting(opener_url,
- opener_url,
+ if (content_settings->GetContentSetting(opener_top_level_frame_url,
+ opener_top_level_frame_url,
CONTENT_SETTINGS_TYPE_POPUPS,
std::string()) ==
CONTENT_SETTING_ALLOW) {
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698