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

Unified Diff: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc

Issue 2003963004: Enable CSP on more WebUI pages (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: indentation 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: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
index 31735df89753dd807c896debdf04c61085b4288b..5c5297506907737ff443b9eae8850a833be198e3 100644
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
@@ -280,9 +280,9 @@ void DomDistillerViewerSource::WillServiceRequest(
std::string* path) const {
}
-std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc()
+std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc()
const {
- return "object-src 'none'; style-src 'self' https://fonts.googleapis.com;";
+ return "style-src 'self' https://fonts.googleapis.com;";
}
std::string DomDistillerViewerSource::GetContentSecurityPolicyFrameSrc() const {

Powered by Google App Engine
This is Rietveld 408576698