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

Unified Diff: extensions/renderer/user_script_set.cc

Issue 1150683007: [Extensions] Use document url (not top url) for tab-specific permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « extensions/renderer/user_script_injector.cc ('k') | extensions/renderer/web_ui_injection_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_set.cc
diff --git a/extensions/renderer/user_script_set.cc b/extensions/renderer/user_script_set.cc
index 01e8a5a2e682887f24c136dc1fedaa99f7b6fc05..864840fd55f1a290c8c0476a8e71e3ad5e8eec00 100644
--- a/extensions/renderer/user_script_set.cc
+++ b/extensions/renderer/user_script_set.cc
@@ -222,9 +222,10 @@ scoped_ptr<ScriptInjection> UserScriptSet::GetInjectionForScript(
if (top_frame->isWebRemoteFrame())
return injection.Pass();
- if (injector->CanExecuteOnFrame(injection_host.get(), web_frame,
- -1, // Content scripts are not tab-specific.
- top_frame->document().url()) ==
+ if (injector->CanExecuteOnFrame(
+ injection_host.get(),
+ web_frame,
+ -1 /* Content scripts are not tab-specific. */) ==
PermissionsData::ACCESS_DENIED) {
return injection.Pass();
}
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | extensions/renderer/web_ui_injection_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698