summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/chrome_content_renderer_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/chrome_content_renderer_client.cc')
-rw-r--r--chrome/renderer/chrome_content_renderer_client.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 2057aa9..858d5ad 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -574,11 +574,10 @@ bool ChromeContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
}
bool ChromeContentRendererClient::AllowPopup(const GURL& creator) {
- return true;
// Extensions and apps always allowed to create unrequested popups. The second
// check is necessary to include content scripts.
- // return extension_dispatcher_->extensions()->GetByURL(creator) ||
- // bindings_utils::GetInfoForCurrentContext();
+ return extension_dispatcher_->extensions()->GetByURL(creator) ||
+ bindings_utils::GetInfoForCurrentContext();
}
bool ChromeContentRendererClient::ShouldFork(WebFrame* frame,