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

Side by Side Diff: extensions/common/manifest_constants.cc

Issue 747403002: Ignore insecure parts of CSP in extensions and allow extension to load (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test expectations Created 5 years, 12 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
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/common/manifest_handlers/csp_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 const char kInvalidContentCapabilitiesMatchOrigin[] = 307 const char kInvalidContentCapabilitiesMatchOrigin[] =
308 "Domain wildcards are not allowed for content_capabilities URL patterns."; 308 "Domain wildcards are not allowed for content_capabilities URL patterns.";
309 const char kInvalidContentCapabilitiesPermission[] = 309 const char kInvalidContentCapabilitiesPermission[] =
310 "Invalid content_capabilities permission: *."; 310 "Invalid content_capabilities permission: *.";
311 const char kInvalidContentPack[] = 311 const char kInvalidContentPack[] =
312 "Invalid value for 'content_pack'."; 312 "Invalid value for 'content_pack'.";
313 const char kInvalidContentPackSites[] = 313 const char kInvalidContentPackSites[] =
314 "Invalid value for Content Pack sites - files must be strings."; 314 "Invalid value for Content Pack sites - files must be strings.";
315 const char kInvalidContentScript[] = 315 const char kInvalidContentScript[] =
316 "Invalid value for 'content_scripts[*]'."; 316 "Invalid value for 'content_scripts[*]'.";
317 const char kInvalidContentScriptsList[] =
318 "Invalid value for 'content_scripts'.";
317 const char kInvalidContentSecurityPolicy[] = 319 const char kInvalidContentSecurityPolicy[] =
318 "Invalid value for 'content_security_policy'."; 320 "Invalid value for 'content_security_policy'.";
319 const char kInvalidContentScriptsList[] = 321 const char kInvalidCSPInsecureValue[] =
320 "Invalid value for 'content_scripts'."; 322 "Ignored insecure CSP value \"*\" in directive '*'.";
323 const char kInvalidCSPMissingSecureSrc[] =
324 "CSP directive '*' must be specified (either explicitly, or implicitly via"
325 " 'default-src') and must whitelist only secure resources.";
321 const char kInvalidCss[] = 326 const char kInvalidCss[] =
322 "Invalid value for 'content_scripts[*].css[*]'."; 327 "Invalid value for 'content_scripts[*].css[*]'.";
323 const char kInvalidCssList[] = 328 const char kInvalidCssList[] =
324 "Required value 'content_scripts[*].css' is invalid."; 329 "Required value 'content_scripts[*].css' is invalid.";
325 const char kInvalidDefaultLocale[] = 330 const char kInvalidDefaultLocale[] =
326 "Invalid value for default locale - locale name must be a string."; 331 "Invalid value for default locale - locale name must be a string.";
327 const char kInvalidDescription[] = 332 const char kInvalidDescription[] =
328 "Invalid value for 'description'."; 333 "Invalid value for 'description'.";
329 const char kInvalidDevToolsPage[] = 334 const char kInvalidDevToolsPage[] =
330 "Invalid value for 'devtools_page'."; 335 "Invalid value for 'devtools_page'.";
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 const char kInvalidWebviewPartitionName[] = 625 const char kInvalidWebviewPartitionName[] =
621 "Invalid value for 'webview.partitions[*].name'."; 626 "Invalid value for 'webview.partitions[*].name'.";
622 const char kInvalidWebviewPartitionsList[] = 627 const char kInvalidWebviewPartitionsList[] =
623 "Invalid value for 'webview.partitions'."; 628 "Invalid value for 'webview.partitions'.";
624 const char kInvalidWebURL[] = 629 const char kInvalidWebURL[] =
625 "Invalid value for 'app.urls[*]': *"; 630 "Invalid value for 'app.urls[*]': *";
626 const char kInvalidWebURLs[] = 631 const char kInvalidWebURLs[] =
627 "Invalid value for 'app.urls'."; 632 "Invalid value for 'app.urls'.";
628 const char kInvalidZipHash[] = 633 const char kInvalidZipHash[] =
629 "Required key 'zip_hash' is missing or invalid."; 634 "Required key 'zip_hash' is missing or invalid.";
630 const char kInsecureContentSecurityPolicy[] =
631 "Invalid value for 'content_security_policy': Both 'script-src' and"
632 " 'object-src' directives must be specified (either explicitly, or"
633 " implicitly via 'default-src'), and both must whitelist only secure"
634 " resources. You may include any of the following sources: \"'self'\","
635 " \"'unsafe-eval'\", \"http://127.0.0.1\", \"http://localhost\", or any"
636 " \"https://\" or \"chrome-extension://\" origin. For more information,"
637 " see http://developer.chrome.com/extensions/contentSecurityPolicy.html";
638 const char kKeyIsDeprecatedWithReplacement[] = 635 const char kKeyIsDeprecatedWithReplacement[] =
639 "Key \"*\" is deprecated. Key \"*\" should be used instead."; 636 "Key \"*\" is deprecated. Key \"*\" should be used instead.";
640 const char kLauncherPagePageRequired[] = 637 const char kLauncherPagePageRequired[] =
641 "The 'launcher_page.page' key is required."; 638 "The 'launcher_page.page' key is required.";
642 const char kLaunchPathAndExtentAreExclusive[] = 639 const char kLaunchPathAndExtentAreExclusive[] =
643 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; 640 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set.";
644 const char kLaunchPathAndURLAreExclusive[] = 641 const char kLaunchPathAndURLAreExclusive[] =
645 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " 642 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot "
646 "both be set."; 643 "both be set.";
647 const char kLaunchURLRequired[] = 644 const char kLaunchURLRequired[] =
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 const char kWebRequestConflictsWithLazyBackground[] = 685 const char kWebRequestConflictsWithLazyBackground[] =
689 "The 'webRequest' API cannot be used with event pages."; 686 "The 'webRequest' API cannot be used with event pages.";
690 #if defined(OS_CHROMEOS) 687 #if defined(OS_CHROMEOS)
691 const char kIllegalPlugins[] = 688 const char kIllegalPlugins[] =
692 "Extensions cannot install plugins on Chrome OS"; 689 "Extensions cannot install plugins on Chrome OS";
693 #endif 690 #endif
694 691
695 } // namespace manifest_errors 692 } // namespace manifest_errors
696 693
697 } // namespace extensions 694 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/common/manifest_handlers/csp_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698