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

Side by Side Diff: chrome/common/extensions/extension_manifest_constants.cc

Issue 10905258: Tweaking the "insecure CSP" error message to clarify that both 'script-src' and 'object-src' must b… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drive-by doc update. Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/docs/server2/templates/articles/contentSecurityPolicy.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/extensions/extension_manifest_constants.h" 5 #include "chrome/common/extensions/extension_manifest_constants.h"
6 6
7 namespace extension_manifest_keys { 7 namespace extension_manifest_keys {
8 8
9 const char kAllFrames[] = "all_frames"; 9 const char kAllFrames[] = "all_frames";
10 const char kAltKey[] = "altKey"; 10 const char kAltKey[] = "altKey";
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 "Invalid value for 'web_accessible_resources'."; 450 "Invalid value for 'web_accessible_resources'.";
451 const char kInvalidWebAccessibleResource[] = 451 const char kInvalidWebAccessibleResource[] =
452 "Invalid value for 'web_accessible_resources[*]'."; 452 "Invalid value for 'web_accessible_resources[*]'.";
453 const char kInvalidWebURL[] = 453 const char kInvalidWebURL[] =
454 "Invalid value for 'app.urls[*]': *"; 454 "Invalid value for 'app.urls[*]': *";
455 const char kInvalidWebURLs[] = 455 const char kInvalidWebURLs[] =
456 "Invalid value for 'app.urls'."; 456 "Invalid value for 'app.urls'.";
457 const char kInvalidZipHash[] = 457 const char kInvalidZipHash[] =
458 "Required key 'zip_hash' is missing or invalid."; 458 "Required key 'zip_hash' is missing or invalid.";
459 const char kInsecureContentSecurityPolicy[] = 459 const char kInsecureContentSecurityPolicy[] =
460 "Invalid value for 'content_security_policy': The 'script-src' and" 460 "Invalid value for 'content_security_policy': Both 'script-src' and"
461 " 'object-src' directives can only whitelist secure resources. You may" 461 " 'object-src' directives must be specified (either explicitly, or"
462 " include any of the following sources: \"'self'\", \"http://127.0.0.1\"," 462 " implicitly via 'default-src'), and both must whitelist only secure"
463 " \"http://localhost\", or any \"https://\" or \"chrome-extension://\"" 463 " resources. You may include any of the following sources: \"'self'\","
464 " origin. For more information, see" 464 " \"http://127.0.0.1\", \"http://localhost\", or any \"https://\" or"
465 " \"chrome-extension://\" origin. For more information, see"
Aaron Boodman 2012/09/13 15:53:36 You can whitelist unsafe-eval too, right?
465 " http://developer.chrome.com/extensions/contentSecurityPolicy.html"; 466 " http://developer.chrome.com/extensions/contentSecurityPolicy.html";
466 const char kLaunchPathAndExtentAreExclusive[] = 467 const char kLaunchPathAndExtentAreExclusive[] =
467 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; 468 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set.";
468 const char kLaunchPathAndURLAreExclusive[] = 469 const char kLaunchPathAndURLAreExclusive[] =
469 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " 470 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot "
470 "both be set."; 471 "both be set.";
471 const char kLaunchURLRequired[] = 472 const char kLaunchURLRequired[] =
472 "Either 'app.launch.local_path' or 'app.launch.web_url' is required."; 473 "Either 'app.launch.local_path' or 'app.launch.web_url' is required.";
473 const char kLocalesMessagesFileMissing[] = 474 const char kLocalesMessagesFileMissing[] =
474 "Messages file is missing for locale."; 475 "Messages file is missing for locale.";
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 const char kScriptBadgeTitleIgnored[] = 507 const char kScriptBadgeTitleIgnored[] =
507 "default_title specified in script_badge manifest section will not be " 508 "default_title specified in script_badge manifest section will not be "
508 "used."; 509 "used.";
509 const char kWebRequestConflictsWithLazyBackground[] = 510 const char kWebRequestConflictsWithLazyBackground[] =
510 "The 'webRequest' API cannot be used with event pages."; 511 "The 'webRequest' API cannot be used with event pages.";
511 #if defined(OS_CHROMEOS) 512 #if defined(OS_CHROMEOS)
512 const char kIllegalPlugins[] = 513 const char kIllegalPlugins[] =
513 "Extensions cannot install plugins on Chrome OS"; 514 "Extensions cannot install plugins on Chrome OS";
514 #endif 515 #endif
515 } // namespace extension_manifest_errors 516 } // namespace extension_manifest_errors
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/templates/articles/contentSecurityPolicy.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698