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

Unified Diff: chrome/common/extensions/extension.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/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 7f30fea4adf3766d8d640e4925540b6a4d0d7506..1177ebed56660c6f0577135cc6791bb53cbc3b42 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -73,7 +73,7 @@ const char kPrivate[] = "PRIVATE";
const int kRSAKeySize = 1024;
const char kDefaultContentSecurityPolicy[] =
- "script-src 'self'; object-src 'self'";
+ "script-src 'self' chrome-extension-resource:; object-src 'self'";
// Converts a normal hexadecimal string into the alphabet used by extensions.
// We use the characters 'a'-'p' instead of '0'-'f' to avoid ever having a

Powered by Google App Engine
This is Rietveld 408576698