summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch')
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch121
1 files changed, 121 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch
new file mode 100644
index 0000000..e969364
--- /dev/null
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch
@@ -0,0 +1,121 @@
1# Disables references to fonts.googleapis.com
2
3--- chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html.orig
4+++ chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html
5@@ -5,7 +5,7 @@
6 <meta name="viewport"
7 content="initial-scale=1, minimum-scale=1,width=device-width">
8 <title>$i18n{blockPageTitle}</title>
9-<link href="https://fonts.googleapis.com/css?family=Google+Sans" rel="stylesheet">
10+<link href="chrome://resources/css/roboto.css" rel="stylesheet">
11 <link rel="stylesheet" href="../../../../../../../components/security_interstitials/core/common/resources/interstitial_core.css">
12 <link rel="stylesheet" href="../../../../../supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.css">
13 </head>
14--- chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css.orig
15+++ chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css
16@@ -2,7 +2,7 @@
17 * Use of this source code is governed by a BSD-style license that can be
18 * found in the LICENSE file. */
19
20-@import url(https://fonts.googleapis.com/css?family=Roboto);
21+@import url(chrome://resources/css/roboto.css);
22
23 body {
24 margin: 0 0 20px 0;
25--- chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css.orig
26+++ chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css
27@@ -2,7 +2,7 @@
28 * Use of this source code is governed by a BSD-style license that can be
29 * found in the LICENSE file. */
30
31-@import url(https://fonts.googleapis.com/css?family=Roboto);
32+@import url(chrome://resources/css/roboto.css);
33
34 body {
35 margin: 0 0 20px 0;
36--- chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html.orig
37+++ chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html
38@@ -5,7 +5,7 @@
39 <meta name="viewport"
40 content="initial-scale=1, minimum-scale=1, width=device-width">
41 <title>$i18n{blockPageTitle}</title>
42-<link href="https://fonts.googleapis.com/css?family=Google+Sans" rel="stylesheet">
43+<link href="chrome://resources/css/roboto.css" rel="stylesheet">
44 <link rel="stylesheet" href="../../../../../components/security_interstitials/core/common/resources/interstitial_core.css">
45 <link rel="stylesheet" href="supervised_user_block_interstitial.css">
46 <script src="../../../../../ui/webui/resources/js/cr.js"></script>
47--- components/dom_distiller/content/browser/dom_distiller_viewer_source.cc.orig
48+++ components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
49@@ -300,7 +300,7 @@ bool DomDistillerViewerSource::ShouldSer
50 std::string DomDistillerViewerSource::GetContentSecurityPolicy(
51 network::mojom::CSPDirectiveName directive) {
52 if (directive == network::mojom::CSPDirectiveName::StyleSrc) {
53- return "style-src 'self' https://fonts.googleapis.com;";
54+ return "style-src 'self';";
55 } else if (directive == network::mojom::CSPDirectiveName::ChildSrc) {
56 return "child-src *;";
57 } else if (directive ==
58--- components/dom_distiller/core/html/preview.html.orig
59+++ components/dom_distiller/core/html/preview.html
60@@ -11,7 +11,7 @@ found in the LICENSE file.
61 <meta name="theme-color" id="theme-color">
62 <title>Title goes here and it could be kind of lengthy - Publisher name</title>
63 <link href="../css/distilledpage.css" rel="stylesheet" type="text/css">
64- <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
65+ <link href='chrome://resources/css/roboto.css' rel='stylesheet' type='text/css'>
66 <style>
67 .english :lang(th) {display: none}
68 .english :lang(zh) {display: none}
69--- components/dom_distiller/core/javascript/dom_distiller_viewer.js.orig
70+++ components/dom_distiller/core/javascript/dom_distiller_viewer.js
71@@ -109,7 +109,7 @@ function maybeSetWebFont() {
72 }
73
74 const e = document.createElement('link');
75- e.href = 'https://fonts.googleapis.com/css?family=Roboto';
76+ e.href = 'chrome://resources/css/roboto.css';
77 e.rel = 'stylesheet';
78 e.type = 'text/css';
79 document.head.appendChild(e);
80--- third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css.orig
81+++ third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
82@@ -12,8 +12,7 @@
83 * See the License for the specific language governing permissions and
84 * limitations under the License. */
85
86-@import "https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin,cyrillic-ext,greek-ext,cyrillic,greek,vietnamese,latin-ext";
87-@import "https://fonts.googleapis.com/css?family=Source+Code+Pro";
88+@import "chrome://resources/css/roboto.css";
89
90 body,
91 table,
92--- tools/md_browser/base.css.orig
93+++ tools/md_browser/base.css
94@@ -16,8 +16,7 @@
95
96 /* Common styles and definitions. */
97
98-@import "//fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin,cyrillic-ext,greek-ext,cyrillic,greek,vietnamese,latin-ext";
99-@import "//fonts.googleapis.com/css?family=Source+Code+Pro";
100+@import "chrome://resources/css/roboto.css";
101 *,
102 *::after,
103 *::before {
104@@ -72,7 +71,7 @@ ul, ol {
105 user-select: none;
106 }
107 .u-monospace {
108- font-family: 'Source Code Pro', monospace;
109+ font-family: monospace;
110 }
111
112 /* Common.soy */
113@@ -82,7 +81,7 @@ ul, ol {
114 color: #000;
115 display: -ms-flexbox;
116 display: flex;
117- font: 14px/1.54 'Open Sans', sans-serif;
118+ font: 14px/1.54 'Roboto', sans-serif;
119 min-height: 100vh;
120 -ms-flex-direction: column;
121 flex-direction: column;