From 02dfbb43dccefdc6848ab6e6d122f7069af77f94 Mon Sep 17 00:00:00 2001 From: csagan5 <32685696+csagan5@users.noreply.github.com> Date: Thu, 12 Oct 2017 08:16:19 +0200 Subject: [PATCH] Add other two patches from Ungoogled-chromium --- patches/privacy/disable-google-fonts.patch | 59 +++++ patches/privacy/modify-default-prefs.patch | 238 +++++++++++++++++++++ 2 files changed, 297 insertions(+) create mode 100644 patches/privacy/disable-google-fonts.patch create mode 100644 patches/privacy/modify-default-prefs.patch diff --git a/patches/privacy/disable-google-fonts.patch b/patches/privacy/disable-google-fonts.patch new file mode 100644 index 00000000..c9c0be34 --- /dev/null +++ b/patches/privacy/disable-google-fonts.patch @@ -0,0 +1,59 @@ +commit a06e62ec32a189b8cd16266e47b386ebe00cc04c +Author: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu Oct 12 07:41:20 2017 +0200 + + Disables references to fonts.googleapis.com + +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 bed7d31..cb8971f 100644 +--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc ++++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc +@@ -309,7 +309,7 @@ bool DomDistillerViewerSource::ShouldServiceRequest( + + std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc() + const { +- return "style-src 'self' https://fonts.googleapis.com;"; ++ return "style-src 'self';"; + } + + std::string DomDistillerViewerSource::GetContentSecurityPolicyChildSrc() const { +diff --git a/components/dom_distiller/core/html/preview.html b/components/dom_distiller/core/html/preview.html +index a4c07c5..894eb7f 100644 +--- a/components/dom_distiller/core/html/preview.html ++++ b/components/dom_distiller/core/html/preview.html +@@ -11,7 +11,7 @@ found in the LICENSE file. + +