зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1709472 - Change error page favicon from warning.svg to info.svg. r=jaws
This also updates the icon used for the "focus tab by prompting" permission in the permission panel to use info.svg. Differential Revision: https://phabricator.services.mozilla.com/D114653
This commit is contained in:
Родитель
57064ecc19
Коммит
c7b01c2055
|
@ -14,7 +14,7 @@
|
||||||
FAVICON_ERRORPAGE_URL symbol in
|
FAVICON_ERRORPAGE_URL symbol in
|
||||||
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
||||||
<link rel="icon" type="image/png" id="favicon"
|
<link rel="icon" type="image/png" id="favicon"
|
||||||
href="chrome://global/skin/icons/warning.svg"/>
|
href="chrome://global/skin/icons/info.svg"/>
|
||||||
<link rel="localization" href="branding/brand.ftl"/>
|
<link rel="localization" href="branding/brand.ftl"/>
|
||||||
<link rel="localization" href="browser/aboutRestartRequired.ftl"/>
|
<link rel="localization" href="browser/aboutRestartRequired.ftl"/>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<link rel="stylesheet" href="chrome://browser/skin/aboutNetError.css" type="text/css" media="all" />
|
<link rel="stylesheet" href="chrome://browser/skin/aboutNetError.css" type="text/css" media="all" />
|
||||||
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
|
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
|
||||||
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
||||||
<link rel="icon" id="favicon" href="chrome://global/skin/icons/warning.svg"/>
|
<link rel="icon" id="favicon" href="chrome://global/skin/icons/info.svg"/>
|
||||||
<link rel="localization" href="browser/aboutCertError.ftl" />
|
<link rel="localization" href="browser/aboutCertError.ftl" />
|
||||||
<link rel="localization" href="browser/nsserrors.ftl" />
|
<link rel="localization" href="browser/nsserrors.ftl" />
|
||||||
<link rel="localization" href="branding/brand.ftl"/>
|
<link rel="localization" href="branding/brand.ftl"/>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<title data-l10n-id="restore-page-tab-title"></title>
|
<title data-l10n-id="restore-page-tab-title"></title>
|
||||||
<link rel="stylesheet" href="chrome://global/skin/in-content/info-pages.css" type="text/css" media="all"/>
|
<link rel="stylesheet" href="chrome://global/skin/in-content/info-pages.css" type="text/css" media="all"/>
|
||||||
<link rel="stylesheet" href="chrome://browser/skin/aboutSessionRestore.css" type="text/css" media="all"/>
|
<link rel="stylesheet" href="chrome://browser/skin/aboutSessionRestore.css" type="text/css" media="all"/>
|
||||||
<link rel="icon" href="chrome://global/skin/icons/warning.svg"/>
|
<link rel="icon" href="chrome://global/skin/icons/info.svg"/>
|
||||||
<link rel="localization" href="browser/aboutSessionRestore.ftl"/>
|
<link rel="localization" href="browser/aboutSessionRestore.ftl"/>
|
||||||
<link rel="localization" href="branding/brand.ftl"/>
|
<link rel="localization" href="branding/brand.ftl"/>
|
||||||
<script src="chrome://browser/content/aboutSessionRestore.js"/>
|
<script src="chrome://browser/content/aboutSessionRestore.js"/>
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
/* INDIVIDUAL NOTIFICATIONS */
|
/* INDIVIDUAL NOTIFICATIONS */
|
||||||
|
|
||||||
.focus-tab-by-prompt-icon {
|
.focus-tab-by-prompt-icon {
|
||||||
list-style-image: url(chrome://global/skin/icons/warning.svg);
|
list-style-image: url(chrome://global/skin/icons/info.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup-notification-icon[popupid="storage-access"],
|
.popup-notification-icon[popupid="storage-access"],
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all" />
|
<link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all" />
|
||||||
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
|
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
|
||||||
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
||||||
<link rel="icon" id="favicon" href="chrome://global/skin/icons/warning.svg"/>
|
<link rel="icon" id="favicon" href="chrome://global/skin/icons/info.svg"/>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="&locale.dir;">
|
<body dir="&locale.dir;">
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<link rel="localization" href="toolkit/about/aboutHttpsOnlyError.ftl">
|
<link rel="localization" href="toolkit/about/aboutHttpsOnlyError.ftl">
|
||||||
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
|
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
|
||||||
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
||||||
<link rel="icon" id="favicon" href="chrome://global/skin/icons/warning.svg"/>
|
<link rel="icon" id="favicon" href="chrome://global/skin/icons/info.svg"/>
|
||||||
<title data-l10n-id="about-httpsonly-title-connection-not-available"></title>
|
<title data-l10n-id="about-httpsonly-title-connection-not-available"></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -331,6 +331,6 @@ interface nsIFaviconDataCallback : nsISupports
|
||||||
#define FAVICON_DEFAULT_URL "chrome://global/skin/icons/defaultFavicon.svg"
|
#define FAVICON_DEFAULT_URL "chrome://global/skin/icons/defaultFavicon.svg"
|
||||||
#define FAVICON_DEFAULT_MIMETYPE "image/svg+xml"
|
#define FAVICON_DEFAULT_MIMETYPE "image/svg+xml"
|
||||||
|
|
||||||
#define FAVICON_ERRORPAGE_URL "chrome://global/skin/icons/warning.svg"
|
#define FAVICON_ERRORPAGE_URL "chrome://global/skin/icons/info.svg"
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
@ -20,7 +20,7 @@ const systemPrincipal = Services.scriptSecurityManager.getSystemPrincipal();
|
||||||
// This error icon must stay in sync with FAVICON_ERRORPAGE_URL in
|
// This error icon must stay in sync with FAVICON_ERRORPAGE_URL in
|
||||||
// nsIFaviconService.idl, aboutCertError.xhtml and netError.xhtml.
|
// nsIFaviconService.idl, aboutCertError.xhtml and netError.xhtml.
|
||||||
const FAVICON_ERRORPAGE_URI = Services.io.newURI(
|
const FAVICON_ERRORPAGE_URI = Services.io.newURI(
|
||||||
"chrome://global/skin/icons/warning.svg"
|
"chrome://global/skin/icons/info.svg"
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -111,7 +111,7 @@ add_task(async function() {
|
||||||
// This error icon must stay in sync with FAVICON_ERRORPAGE_URL in
|
// This error icon must stay in sync with FAVICON_ERRORPAGE_URL in
|
||||||
// nsIFaviconService.idl, aboutCertError.xhtml and netError.xhtml.
|
// nsIFaviconService.idl, aboutCertError.xhtml and netError.xhtml.
|
||||||
let faviconErrorPageURI = Services.io.newURI(
|
let faviconErrorPageURI = Services.io.newURI(
|
||||||
"chrome://global/skin/icons/warning.svg"
|
"chrome://global/skin/icons/info.svg"
|
||||||
);
|
);
|
||||||
pageURI = Services.io.newURI("http://example.com/errorIcon");
|
pageURI = Services.io.newURI("http://example.com/errorIcon");
|
||||||
await PlacesTestUtils.addVisits({
|
await PlacesTestUtils.addVisits({
|
||||||
|
|
Загрузка…
Ссылка в новой задаче