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

Unified Diff: content/public/browser/url_data_source.cc

Issue 2013573007: Catch CSP violations in InProcessBrowserTest Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: whitelist more Created 4 years, 7 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: content/public/browser/url_data_source.cc
diff --git a/content/public/browser/url_data_source.cc b/content/public/browser/url_data_source.cc
index 6292e6545f55de4c52e063ea08641bb95345a1be..94f4c5d142eb7ba9642a45591400b34f4b68d71e 100644
--- a/content/public/browser/url_data_source.cc
+++ b/content/public/browser/url_data_source.cc
@@ -49,7 +49,7 @@ std::string URLDataSource::GetContentSecurityPolicyFrameSrc() const {
}
std::string URLDataSource::GetContentSecurityPolicyStyleSrc() const {
- return "";
+ return "style-src chrome://resources 'self' 'unsafe-inline';";
}
std::string URLDataSource::GetContentSecurityPolicyImgSrc() const {
« chrome/test/base/in_process_browser_test.cc ('K') | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698