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

Unified Diff: extensions/common/permissions/permissions_data.cc

Issue 226663003: Allow content script insertion on about:-URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use url of parent(s) instead of origin, more tests Created 6 years, 8 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: extensions/common/permissions/permissions_data.cc
diff --git a/extensions/common/permissions/permissions_data.cc b/extensions/common/permissions/permissions_data.cc
index ca5d3ff6ff2b3aa6af2d8d1563728577715642a8..933e42a45988dd2ef76a73c592071707f9fa03cb 100644
--- a/extensions/common/permissions/permissions_data.cc
+++ b/extensions/common/permissions/permissions_data.cc
@@ -511,8 +511,8 @@ bool PermissionsData::CanExecuteScriptOnPage(const Extension* extension,
} else {
// Otherwise, see if this extension has permission to execute script
// programmatically on pages.
- can_access = GetActivePermissions(extension)->
- HasExplicitAccessToOrigin(document_url);
+ can_access =
+ GetActivePermissions(extension)->HasEffectiveAccessToURL(document_url);
not at google - send to devlin 2014/05/01 20:32:19 why do you need this change? there isn't a script,
robwu 2014/05/01 21:30:38 The change is not needed any more, so I've reverte
not at google - send to devlin 2014/05/02 16:01:48 Understood. We try to keep the permissions as narr
}
if (!can_access && error) {

Powered by Google App Engine
This is Rietveld 408576698