Chromium Code Reviews| 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[] = |