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

Side by Side 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: Fixed test case 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/common/manifest_constants.h" 5 #include "extensions/common/manifest_constants.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 namespace manifest_keys { 9 namespace manifest_keys {
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 "Hosted apps that use 'background_page' must have the 'background' " 255 "Hosted apps that use 'background_page' must have the 'background' "
256 "permission."; 256 "permission.";
257 const char kBackgroundRequiredForPlatformApps[] = 257 const char kBackgroundRequiredForPlatformApps[] =
258 "Packaged apps must have a background page or background scripts."; 258 "Packaged apps must have a background page or background scripts.";
259 const char kCannotAccessAboutUrl[] = 259 const char kCannotAccessAboutUrl[] =
260 "Cannot access \"*\" at origin \"*\". Extension must have permission to " 260 "Cannot access \"*\" at origin \"*\". Extension must have permission to "
261 "access the frame's origin, and matchAboutBlank must be true."; 261 "access the frame's origin, and matchAboutBlank must be true.";
262 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; 262 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL";
263 const char kCannotAccessExtensionUrl[] = 263 const char kCannotAccessExtensionUrl[] =
264 "Cannot access a chrome-extension:// URL of different extension"; 264 "Cannot access a chrome-extension:// URL of different extension";
265 // This deliberately does not contain a URL. Otherwise an extension can parse
266 // error messages and determine the URLs of open tabs without having appropriate
267 // permissions to see these URLs.
265 const char kCannotAccessPage[] = 268 const char kCannotAccessPage[] =
269 "Cannot access contents of the page. "
270 "Extension manifest must request permission to access the respective host.";
271 // Use this error message with caution and only if the extension triggering it
272 // has tabs permission. Otherwise, URLs may be leaked to extensions.
273 const char kCannotAccessPageWithUrl[] =
266 "Cannot access contents of url \"*\". " 274 "Cannot access contents of url \"*\". "
267 "Extension manifest must request permission to access this host."; 275 "Extension manifest must request permission to access this host.";
268 const char kCannotChangeExtensionID[] = 276 const char kCannotChangeExtensionID[] =
269 "Installed extensions cannot change their IDs."; 277 "Installed extensions cannot change their IDs.";
270 const char kCannotClaimAllHostsInExtent[] = 278 const char kCannotClaimAllHostsInExtent[] =
271 "Cannot claim all hosts ('*') in an extent."; 279 "Cannot claim all hosts ('*') in an extent.";
272 const char kCannotClaimAllURLsInExtent[] = 280 const char kCannotClaimAllURLsInExtent[] =
273 "Cannot claim all URLs in an extent."; 281 "Cannot claim all URLs in an extent.";
274 const char kCannotScriptGallery[] = 282 const char kCannotScriptGallery[] =
275 "The extensions gallery cannot be scripted."; 283 "The extensions gallery cannot be scripted.";
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 "'file_system_provider_capabilities' section to be specified in the " 727 "'file_system_provider_capabilities' section to be specified in the "
720 "manifest."; 728 "manifest.";
721 const char kInvalidFileSystemProviderMissingPermission[] = 729 const char kInvalidFileSystemProviderMissingPermission[] =
722 "The 'file_system_provider_capabilities' section requires the " 730 "The 'file_system_provider_capabilities' section requires the "
723 "'fileSystemProvider' permission to be specified in the manifest."; 731 "'fileSystemProvider' permission to be specified in the manifest.";
724 #endif 732 #endif
725 733
726 } // namespace manifest_errors 734 } // namespace manifest_errors
727 735
728 } // namespace extensions 736 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/common/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698