disable-fonts-googleapis-references.patch 5.4 KB

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