Bug 1743102 Added color-scheme meta tag to remaining about: pages r=Gijs,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D133743
This commit is contained in:
Patrick 2021-12-16 16:30:30 +00:00
Родитель 78607df6d6
Коммит 7aeecb4714
16 изменённых файлов: 29 добавлений и 24 удалений

Просмотреть файл

@ -56,6 +56,7 @@ function templateHTML(options) {
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; object-src 'none'; script-src resource: chrome:; connect-src https:; img-src https: data: blob: chrome:; style-src 'unsafe-inline';">
<meta name=color-scheme content="light dark">
<title data-l10n-id="newtab-page-title"></title>
<link rel="icon" type="image/png" href="chrome://branding/content/icon32.png"/>
<link rel="localization" href="branding/brand.ftl" />

Просмотреть файл

@ -23,6 +23,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; object-src 'none'; script-src resource: chrome:; connect-src https:; img-src https: data: blob: chrome:; style-src 'unsafe-inline';">
<meta name=color-scheme content="light dark">
<title data-l10n-id="newtab-page-title"></title>
<link rel="icon" type="image/png" href="chrome://branding/content/icon32.png"/>
<link rel="localization" href="branding/brand.ftl" />

Просмотреть файл

@ -777,27 +777,24 @@ const Base = Object(react_redux__WEBPACK_IMPORTED_MODULE_4__["connect"])(state =
/* 3 */
/***/ (function(module, exports) {
var g;
var g; // This works in non-strict mode
// This works in non-strict mode
g = (function() {
return this;
})();
g = function () {
return this;
}();
try {
// This works if eval is allowed (see CSP)
g = g || new Function("return this")();
// This works if eval is allowed (see CSP)
g = g || new Function("return this")();
} catch (e) {
// This works if the window reference is available
if (typeof window === "object") g = window;
}
// g can still be undefined, but nothing to do about it...
// This works if the window reference is available
if (typeof window === "object") g = window;
} // g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
module.exports = g;
/***/ }),
/* 4 */
@ -9354,14 +9351,12 @@ function mapBundleSync(iterable, ids) {
return getBundleForId(iterable, ids);
}
return ids.map(
id => getBundleForId(iterable, id)
);
return ids.map(id => getBundleForId(iterable, id));
}
/*
* Find the best `FluentBundle` with the translation for `id`.
*/
function getBundleForId(iterable, id) {
for (const bundle of iterable) {
if (bundle.hasMessage(id)) {
@ -9371,7 +9366,6 @@ function getBundleForId(iterable, id) {
return null;
}
// CONCATENATED MODULE: ./node_modules/fluent-sequence/src/map_async.js
/*
* Asynchronously map an identifier or an array of identifiers to the best
@ -9398,9 +9392,9 @@ async function mapBundleAsync(iterable, ids) {
if (!foundBundles[index] && bundle.hasMessage(id)) {
foundBundles[index] = bundle;
remainingCount--;
}
} // Return early when all ids have been mapped to contexts.
// Return early when all ids have been mapped to contexts.
if (remainingCount === 0) {
return foundBundles;
}
@ -9409,7 +9403,6 @@ async function mapBundleAsync(iterable, ids) {
return foundBundles;
}
// CONCATENATED MODULE: ./node_modules/fluent-sequence/src/index.js
/*
* @module fluent-sequence
@ -9417,8 +9410,6 @@ async function mapBundleAsync(iterable, ids) {
*/
// CONCATENATED MODULE: ./node_modules/cached-iterable/src/cached_iterable.mjs
/*
* Base CachedIterable class.

Просмотреть файл

@ -7,6 +7,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; object-src 'none'; script-src resource: chrome:; connect-src https:; img-src https: data: blob: chrome:; style-src 'unsafe-inline';">
<meta name=color-scheme content="light dark">
<title data-l10n-id="newtab-page-title"></title>
<link rel="icon" type="image/png" href="chrome://branding/content/icon32.png"/>
<link rel="localization" href="branding/brand.ftl" />

Просмотреть файл

@ -7,6 +7,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; object-src 'none'; script-src resource: chrome:; connect-src https:; img-src https: data: blob: chrome:; style-src 'unsafe-inline';">
<meta name=color-scheme content="light dark">
<title data-l10n-id="newtab-page-title"></title>
<link rel="icon" type="image/png" href="chrome://branding/content/icon32.png"/>
<link rel="localization" href="branding/brand.ftl" />

Просмотреть файл

@ -7,6 +7,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; object-src 'none'; script-src resource: chrome:; connect-src https:; img-src https: data: blob: chrome:; style-src 'unsafe-inline';">
<meta name=color-scheme content="light dark">
<title data-l10n-id="newtab-page-title"></title>
<link rel="icon" type="image/png" href="chrome://branding/content/icon32.png"/>
<link rel="localization" href="branding/brand.ftl" />

Просмотреть файл

@ -7,6 +7,7 @@
<html force-theme="auto">
<head>
<meta charset="utf-8" />
<meta name="color-scheme" content="light dark">
<title>Debugging</title>
<meta http-equiv="Content-Security-Policy"
content="default-src chrome: resource:; img-src data: chrome: resource: https:; object-src 'none'" />

Просмотреть файл

@ -11,6 +11,7 @@
<head>
<meta http-equiv="Content-Security-Policy" content="default-src chrome:; object-src 'none'" />
<title data-l10n-id="head-title"></title>
<meta name="color-scheme" content="light dark"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>a
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css" type="text/css"/>
<link rel="stylesheet" href="chrome://devtools-startup/content/aboutdevtools/aboutdevtools.css" type="text/css"/>

Просмотреть файл

@ -149,6 +149,7 @@ nsresult nsAboutCacheEntry::Channel::GetContentStream(nsIURI* uri,
"<head>\n"
" <meta http-equiv=\"Content-Security-Policy\" content=\"default-src "
"chrome:; object-src 'none'\" />\n"
"<meta name=\"color-scheme\" content=\"light dark\" />\n"
" <title>Cache entry information</title>\n"
" <link rel=\"stylesheet\" "
"href=\"chrome://global/skin/in-content/info-pages.css\" "

Просмотреть файл

@ -7,6 +7,7 @@
<head>
<meta http-equiv="Content-Security-Policy" content="default-src chrome:; object-src 'none'">
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" media="screen, projection" type="text/css"
href="chrome://global/skin/in-content/common.css">
<link rel="stylesheet" media="screen, projection" type="text/css"

Просмотреть файл

@ -18,6 +18,7 @@
<head>
<meta http-equiv="Content-Security-Policy" content="default-src chrome:; object-src 'none'" />
<meta name="viewport" content="width=device-width"/>
<meta name="color-scheme" content="light dark"/>
<title>Memory Analyzer</title>
<link rel="stylesheet" href="chrome://global/skin/aboutMemory.css" type="text/css"/>
<script src="chrome://global/content/aboutMemory.js"/>

Просмотреть файл

@ -5,6 +5,7 @@
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src chrome:;img-src data:; object-src 'none'">
<meta name="color-scheme" content="light dark">
<title data-l10n-id="about-performance-title"></title>
<link rel="icon" id="favicon" href="chrome://global/skin/icons/performance.svg">
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">

Просмотреть файл

@ -5,6 +5,7 @@
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src chrome:;img-src data:; object-src 'none'">
<meta name="color-scheme" content="light dark">
<title data-l10n-id="about-processes-title"></title>
<link rel="icon" id="favicon" href="chrome://global/skin/icons/performance.svg">
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">

Просмотреть файл

@ -9,6 +9,7 @@
<title data-l10n-id="third-party-page-title"></title>
<meta http-equiv="Content-Security-Policy"
content="default-src chrome:; object-src 'none'">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="chrome://global/skin/in-content/info-pages.css"/>
<link rel="stylesheet" href="chrome://global/content/aboutThirdParty.css"/>
<link rel="localization" href="branding/brand.ftl"/>
@ -16,7 +17,6 @@
<link rel="localization" href="toolkit/about/aboutThirdParty.ftl"/>
<script src="chrome://global/content/aboutThirdParty.js"></script>
</head>
<body class="wide-container">
<h1 data-l10n-id="third-party-page-title"></h1>
<p data-l10n-id="third-party-intro"></p>

Просмотреть файл

@ -8,6 +8,7 @@
<head>
<meta http-equiv="Content-Security-Policy" content="default-src chrome:; object-src 'none'" />
<meta charset="utf-8" />
<meta name="color-scheme" content="light dark">
<title data-l10n-id="about-webrtc-document-title"></title>
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
<link rel="stylesheet" type="text/css" media="all"

Просмотреть файл

@ -9,6 +9,7 @@
<!-- Bug 1571346 Remove 'unsafe-inline' from style-src within about:addons -->
<meta http-equiv="Content-Security-Policy" content="default-src chrome:; style-src chrome: 'unsafe-inline'; img-src chrome: file: jar: https: http:; connect-src chrome: data: https: http:; object-src 'none'">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="chrome://global/content/tabprompts.css">
<link rel="stylesheet" href="chrome://global/skin/tabprompts.css">