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

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

Issue 9909019: Add schema chrome-extension-resource:// for extension resources (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update Created 8 years, 8 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/csp_validator.cc
diff --git a/chrome/common/extensions/csp_validator.cc b/chrome/common/extensions/csp_validator.cc
index e80468b8e5b878410d023b5537d36e1d2a291ed8..0c45060133d60c8e95bce9d8044ff75e2ac41dbd 100644
--- a/chrome/common/extensions/csp_validator.cc
+++ b/chrome/common/extensions/csp_validator.cc
@@ -43,7 +43,8 @@ bool HasOnlySecureTokens(StringTokenizer& tokenizer) {
source == "'none'" ||
StartsWithASCII(source, "https://", true) ||
StartsWithASCII(source, "chrome://", true) ||
- StartsWithASCII(source, "chrome-extension://", true)) {
+ StartsWithASCII(source, "chrome-extension://", true) ||
+ StartsWithASCII(source, "chrome-extension-resource:", true)) {
Aaron Boodman 2012/04/18 17:52:24 Why not "//" here too?
Peng 2012/04/18 18:29:16 Because I tried "CER://" here and default CSP, it
continue;
Tom Sepez 2012/04/18 18:03:01 There has needed to be a comment here for some tim
}

Powered by Google App Engine
This is Rietveld 408576698