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

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

Issue 443343002: [dom_distiller] Fix viewer to use Open Sans webfont. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | components/dom_distiller/content/resources/dom_distiller_viewer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/content/dom_distiller_viewer_source.cc
diff --git a/components/dom_distiller/content/dom_distiller_viewer_source.cc b/components/dom_distiller/content/dom_distiller_viewer_source.cc
index 964794e7e40da536a2869a2cb3cba6a95d7cdfb9..fef98cfdace3f68ec98796eda88e0e8881977e2a 100644
--- a/components/dom_distiller/content/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/dom_distiller_viewer_source.cc
@@ -329,7 +329,7 @@ void DomDistillerViewerSource::WillServiceRequest(
std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc()
const {
- return "object-src 'none'; style-src 'self';";
+ return "object-src 'none'; style-src 'self' http://fonts.googleapis.com;";
nyquist 2014/08/07 04:50:46 drive-by: I know the documentation seem to specify
Yaron 2014/08/07 05:03:36 I thought about it, but I honestly don't know how
cjhopman 2014/08/08 18:48:20 Using http allows a mitm to inject style into the
}
} // namespace dom_distiller
« no previous file with comments | « no previous file | components/dom_distiller/content/resources/dom_distiller_viewer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698