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

Unified Diff: extensions/common/manifest_constants.cc

Issue 1414223005: Remove URLs from chrome.tabs.executeScript permission warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: extensions/common/manifest_constants.cc
diff --git a/extensions/common/manifest_constants.cc b/extensions/common/manifest_constants.cc
index fe84e8ca1ab1e5f280b854ec7b69668b33109912..917a5127e433d4a07a788e875f67b98807f2f738 100644
--- a/extensions/common/manifest_constants.cc
+++ b/extensions/common/manifest_constants.cc
@@ -262,9 +262,12 @@ const char kCannotAccessAboutUrl[] =
const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL";
const char kCannotAccessExtensionUrl[] =
"Cannot access a chrome-extension:// URL of different extension";
+// This deliberately does not contain a URL. Otherwise an extension can parse
+// error messages and determine the URLs of open tabs without having appropriate
+// permissions to see these URLs.
const char kCannotAccessPage[] =
- "Cannot access contents of url \"*\". "
- "Extension manifest must request permission to access this host.";
+ "Cannot access contents of a page. "
Devlin 2015/11/06 20:00:39 Hmm... I might prefer to have two error messages h
battre 2015/11/06 21:44:17 For PermissionsData::CanRunOnPage() that should be
Devlin 2015/11/06 22:06:13 Ah, right, I forgot how much of a rat's nest the i
battre 2015/11/11 13:31:17 I have added a TODO. This is a slightly bigger und
Devlin 2015/11/11 16:50:47 Okay, TODO is fine with me.
+ "Extension manifest must request permission to access the respective host.";
const char kCannotChangeExtensionID[] =
"Installed extensions cannot change their IDs.";
const char kCannotClaimAllHostsInExtent[] =

Powered by Google App Engine
This is Rietveld 408576698