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..40ce5301ac1fe2ae9e965a7c143d1df76718bf1f 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)) { |
abarth-chromium
2012/04/13 17:11:24
This file has a nice unit testing along with it.
Peng
2012/04/17 13:52:05
Done.
|
continue; |
} |