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

Unified Diff: extensions/renderer/user_script_set.cc

Issue 1335083004: [Extensions] Don't allow extensions to inject scripts into extension pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | no next file » | 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 0cd225083878cd30e4da3ec5b5e27547716264bc..23cb833f8a0542ba3b7f4ccea6a8df9044ca103c 100644
--- a/extensions/renderer/user_script_set.cc
+++ b/extensions/renderer/user_script_set.cc
@@ -211,7 +211,7 @@ scoped_ptr<ScriptInjection> UserScriptSet::GetInjectionForScript(
if (injector->CanExecuteOnFrame(
injection_host.get(),
web_frame,
- -1 /* Content scripts are not tab-specific. */) ==
+ tab_id) ==
PermissionsData::ACCESS_DENIED) {
return injection.Pass();
}
@@ -225,8 +225,7 @@ scoped_ptr<ScriptInjection> UserScriptSet::GetInjectionForScript(
injector.Pass(),
render_frame,
injection_host.Pass(),
- run_location,
- tab_id));
+ run_location));
}
return injection.Pass();
}
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698