Add disable-fonts-googleapis-references.patch

Remove unnecessary --disable-pings switch in Debian default-flags
This commit is contained in:
Eloston
2017-03-18 00:59:19 -07:00
parent 0bdd090283
commit 0e665fe668
3 changed files with 77 additions and 3 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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.
<title>$1</title>
<!-- Placeholder for CSS. -->
$2
- <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
+ <link href='chrome://resources/css/roboto.css' rel='stylesheet' type='text/css'>
</head>
<body class="$3">
<div id="contentWrap">
--- 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.
<meta name="theme-color" id="theme-color">
<title>Title goes here and it could be kind of lengthy - Publisher name</title>
<link href="../css/distilledpage.css" rel="stylesheet" type="text/css">
- <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
+ <link href='chrome://resources/css/roboto.css' rel='stylesheet' type='text/css'>
<style>
.english :lang(th) {display: none}
.english :lang(zh) {display: none}
--- a/third_party/catapult/third_party/polymer/components/font-roboto/roboto.html
+++ b/third_party/catapult/third_party/polymer/components/font-roboto/roboto.html
@@ -7,5 +7,4 @@ The complete set of contributors may be
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
-<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic">
-<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700">
+<link rel="stylesheet" href="chrome://resources/css/roboto.css">
--- a/third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css
+++ b/third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css
@@ -168,7 +168,7 @@ ul.inheritsList
/* Copied from styles.css generated by Github Pages */
-@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
+@import url(chrome://resources/css/roboto.css);
body {
padding:50px;
--- a/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
+++ b/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
@@ -12,8 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License. */
-@import "https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin,cyrillic-ext,greek-ext,cyrillic,greek,vietnamese,latin-ext";
-@import "https://fonts.googleapis.com/css?family=Source+Code+Pro";
+@import "chrome://resources/css/roboto.css";
body,
table,
--- a/third_party/flatbuffers/src/docs/header.html
+++ b/third_party/flatbuffers/src/docs/header.html
@@ -14,7 +14,7 @@ $treeview
$search
$mathjax
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
-<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400italic,500,500italic,700,700italic|Roboto+Mono:400,700" rel="stylesheet">
+<link href="chrome://resources/css/roboto.css" rel="stylesheet">
$extrastylesheet
</head>
<body>