From 0e665fe66884c7e3ec6ec096b56ade7428cf9eab Mon Sep 17 00:00:00 2001 From: Eloston Date: Sat, 18 Mar 2017 00:59:19 -0700 Subject: [PATCH] Add disable-fonts-googleapis-references.patch Remove unnecessary --disable-pings switch in Debian default-flags --- resources/configs/common/patch_order | 1 + resources/packaging/debian/default-flags | 3 - .../disable-fonts-googleapis-references.patch | 76 +++++++++++++++++++ 3 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 resources/patches/ungoogled-chromium/disable-fonts-googleapis-references.patch diff --git a/resources/configs/common/patch_order b/resources/configs/common/patch_order index 2b186970..ff42f9ee 100644 --- a/resources/configs/common/patch_order +++ b/resources/configs/common/patch_order @@ -68,4 +68,5 @@ ungoogled-chromium/remove-get-help-button.patch ungoogled-chromium/disable-gaia.patch ungoogled-chromium/gn-modify-hardcoded-settings.patch ungoogled-chromium/add-flag-to-disable-trkbar.patch +ungoogled-chromium/disable-fonts-googleapis-references.patch diff --git a/resources/packaging/debian/default-flags b/resources/packaging/debian/default-flags index e9b7c7f9..6d3ea94a 100644 --- a/resources/packaging/debian/default-flags +++ b/resources/packaging/debian/default-flags @@ -15,8 +15,5 @@ export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --ignore-gpu-blacklist" # Don't display any warnings about not being the default browser export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-default-browser-check" -# Disable pinging -export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-pings" - # Disable the builtin media router (bug #833477) export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --media-router=0" diff --git a/resources/patches/ungoogled-chromium/disable-fonts-googleapis-references.patch b/resources/patches/ungoogled-chromium/disable-fonts-googleapis-references.patch new file mode 100644 index 00000000..ca7a6faa --- /dev/null +++ b/resources/patches/ungoogled-chromium/disable-fonts-googleapis-references.patch @@ -0,0 +1,76 @@ +--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc ++++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc +@@ -305,7 +305,7 @@ void DomDistillerViewerSource::WillServi + + std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc() + const { +- return "style-src 'self' https://fonts.googleapis.com;"; ++ return "style-src 'self';"; + } + + std::string DomDistillerViewerSource::GetContentSecurityPolicyChildSrc() const { +--- a/components/dom_distiller/core/html/dom_distiller_viewer.html ++++ b/components/dom_distiller/core/html/dom_distiller_viewer.html +@@ -12,7 +12,7 @@ found in the LICENSE file. + $1 + + $2 +- ++ + + +
+--- 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. + + Title goes here and it could be kind of lengthy - Publisher name + +- ++ +