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

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

Issue 2012393003: Replace frame-src with child-src in WebUI CSP (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@csp
Patch Set: 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 5c5297506907737ff443b9eae8850a833be198e3..164ba8a7b87edd6f53e5d870d7a67e2752ff96cf 100644
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
@@ -285,8 +285,8 @@ std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc()
return "style-src 'self' https://fonts.googleapis.com;";
}
-std::string DomDistillerViewerSource::GetContentSecurityPolicyFrameSrc() const {
- return "frame-src *;";
+std::string DomDistillerViewerSource::GetContentSecurityPolicyChildSrc() const {
+ return "child-src *;";
}
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698