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

Unified Diff: chrome/common/extensions/extension_manifest_constants.cc

Issue 10828363: Improve error message for insecure 'content_security_policy' manifest entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_manifest_constants.cc
diff --git a/chrome/common/extensions/extension_manifest_constants.cc b/chrome/common/extensions/extension_manifest_constants.cc
index ad5e4463af89a82b7a6fb50802c4e549f287ef97..d5fdb7b2084cca560eb4cd4b3446c061d22fe4d9 100644
--- a/chrome/common/extensions/extension_manifest_constants.cc
+++ b/chrome/common/extensions/extension_manifest_constants.cc
@@ -452,6 +452,11 @@ const char kInvalidWebURLs[] =
"Invalid value for 'app.urls'.";
const char kInvalidZipHash[] =
"Required key 'zip_hash' is missing or invalid.";
+const char kInsecureContentSecurityPolicy[] =
+ "Invalid value for 'content_security_policy': 'script-src' and 'object-src'"
+ " can only contain secure resources. You may whitelist HTTPS origins,"
+ " \"chrome-extension:\" resources, \"'self'\", http://127.0.0.1, and"
+ " http://localhost).";
abarth-chromium 2012/08/27 06:51:57 It's confusing when you're using single and when y
const char kLaunchPathAndExtentAreExclusive[] =
"The 'app.launch.local_path' and 'app.urls' keys cannot both be set.";
const char kLaunchPathAndURLAreExclusive[] =

Powered by Google App Engine
This is Rietveld 408576698