mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-23 14:26:18 +00:00
108 lines
4.4 KiB
Diff
108 lines
4.4 KiB
Diff
# Disables references to fonts.googleapis.com
|
|
|
|
--- 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::ShouldSer
|
|
}
|
|
|
|
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/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,4 +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" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic" crossorigin="anonymous">
|
|
+<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>
|
|
--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js
|
|
+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
|
|
@@ -123,7 +123,7 @@ function maybeSetWebFont() {
|
|
return;
|
|
|
|
var e = document.createElement('link');
|
|
- e.href = 'https://fonts.googleapis.com/css?family=Roboto';
|
|
+ e.href = 'chrome://resources/css/roboto.css';
|
|
e.rel = 'stylesheet';
|
|
e.type = 'text/css';
|
|
document.head.appendChild(e);
|
|
--- a/tools/md_browser/base.css
|
|
+++ b/tools/md_browser/base.css
|
|
@@ -16,8 +16,7 @@
|
|
|
|
/* Common styles and definitions. */
|
|
|
|
-@import "//fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin,cyrillic-ext,greek-ext,cyrillic,greek,vietnamese,latin-ext";
|
|
-@import "//fonts.googleapis.com/css?family=Source+Code+Pro";
|
|
+@import "chrome://resources/css/roboto.css";
|
|
*,
|
|
*::after,
|
|
*::before {
|
|
@@ -72,7 +71,7 @@ ul, ol {
|
|
user-select: none;
|
|
}
|
|
.u-monospace {
|
|
- font-family: 'Source Code Pro', monospace;
|
|
+ font-family: monospace;
|
|
}
|
|
|
|
/* Common.soy */
|
|
@@ -82,7 +81,7 @@ ul, ol {
|
|
color: #000;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
- font: 14px/1.54 'Open Sans', sans-serif;
|
|
+ font: 14px/1.54 'Roboto', sans-serif;
|
|
min-height: 100vh;
|
|
-ms-flex-direction: column;
|
|
flex-direction: column;
|