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

Unified Diff: chrome/renderer/extensions/user_script_slave.cc

Issue 8659009: Consider the origin when computing extension permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « chrome/renderer/extensions/user_script_slave.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/user_script_slave.cc
===================================================================
--- chrome/renderer/extensions/user_script_slave.cc (revision 112565)
+++ chrome/renderer/extensions/user_script_slave.cc (working copy)
@@ -230,7 +230,7 @@
return true;
}
-GURL UserScriptSlave::GetLatestURLForFrame(WebFrame* frame) {
+GURL UserScriptSlave::GetDataSourceURLForFrame(WebFrame* frame) {
// Normally we would use frame->document().url() to determine the document's
// URL, but to decide whether to inject a content script, we use the URL from
// the data source. This "quirk" helps prevents content scripts from
@@ -247,7 +247,7 @@
void UserScriptSlave::InjectScripts(WebFrame* frame,
UserScript::RunLocation location) {
- GURL data_source_url = GetLatestURLForFrame(frame);
+ GURL data_source_url = GetDataSourceURLForFrame(frame);
if (data_source_url.is_empty())
return;
« no previous file with comments | « chrome/renderer/extensions/user_script_slave.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698