mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
Bug 1708008 - Remove browser's extension icon, always use extensionGeneric as default extension icon. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D119931
This commit is contained in:
parent
2bf658dd41
commit
3834704712
@ -186,13 +186,7 @@ function triggerPageOptionsAction(win, action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isDefaultIcon(icon) {
|
function isDefaultIcon(icon) {
|
||||||
// These are basically the same icon, but code within webextensions
|
return icon == "chrome://mozapps/skin/extensions/extensionGeneric.svg";
|
||||||
// generates references to the former and generic add-ons manager code
|
|
||||||
// generates referces to the latter.
|
|
||||||
return (
|
|
||||||
icon == "chrome://browser/content/extension.svg" ||
|
|
||||||
icon == "chrome://mozapps/skin/extensions/extensionGeneric.svg"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity">
|
|
||||||
<path d="M2.6 8 4 8c1.103 0 2 .897 2 2s-.897 2-2 2l-1.4 0-.6.6 0 1.775C2 15.271 2.729 16 3.625 16l9.75 0c.896 0 1.625-.729 1.625-1.625l0-8.75C15 4.729 14.271 4 13.375 4L11 4l0-2c0-1.103-.897-2-2-2S7 .897 7 2l0 2-3.375 0C2.729 4 2 4.729 2 5.625L2 7.4l.6.6z"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 620 B |
@ -14,7 +14,6 @@ browser.jar:
|
|||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
content/browser/extension-win-panel.css
|
content/browser/extension-win-panel.css
|
||||||
#endif
|
#endif
|
||||||
content/browser/extension.svg
|
|
||||||
content/browser/ext-browser.json
|
content/browser/ext-browser.json
|
||||||
content/browser/parent/ext-bookmarks.js (parent/ext-bookmarks.js)
|
content/browser/parent/ext-bookmarks.js (parent/ext-bookmarks.js)
|
||||||
content/browser/parent/ext-browser.js (parent/ext-browser.js)
|
content/browser/parent/ext-browser.js (parent/ext-browser.js)
|
||||||
|
@ -591,7 +591,7 @@ add_task(async function testPropertyRemoval() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getTests: function(tabs, windows) {
|
getTests: function(tabs, windows) {
|
||||||
let defaultIcon = "chrome://browser/content/extension.svg";
|
let defaultIcon = "chrome://mozapps/skin/extensions/extensionGeneric.svg";
|
||||||
let details = [
|
let details = [
|
||||||
{
|
{
|
||||||
icon: browser.runtime.getURL("default.png"),
|
icon: browser.runtime.getURL("default.png"),
|
||||||
|
@ -365,7 +365,7 @@ add_task(async function testDetailsObjects() {
|
|||||||
await promiseAnimationFrame();
|
await promiseAnimationFrame();
|
||||||
|
|
||||||
// The initial icon should be the default icon since no icon is in the manifest.
|
// The initial icon should be the default icon since no icon is in the manifest.
|
||||||
const DEFAULT_ICON = "chrome://browser/content/extension.svg";
|
const DEFAULT_ICON = "chrome://mozapps/skin/extensions/extensionGeneric.svg";
|
||||||
let browserActionButton = browserActionWidget.forWindow(window).node;
|
let browserActionButton = browserActionWidget.forWindow(window).node;
|
||||||
let pageActionImage = document.getElementById(pageActionId);
|
let pageActionImage = document.getElementById(pageActionId);
|
||||||
is(
|
is(
|
||||||
|
@ -51,7 +51,7 @@ add_task(async function testTabSwitchContext() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getTests: function(tabs) {
|
getTests: function(tabs) {
|
||||||
let defaultIcon = "chrome://browser/content/extension.svg";
|
let defaultIcon = "chrome://mozapps/skin/extensions/extensionGeneric.svg";
|
||||||
let details = [
|
let details = [
|
||||||
{
|
{
|
||||||
icon: browser.runtime.getURL("default.png"),
|
icon: browser.runtime.getURL("default.png"),
|
||||||
|
@ -431,7 +431,7 @@ add_task(async function testPropertyRemoval() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getTests: function(tabs, windows) {
|
getTests: function(tabs, windows) {
|
||||||
let defaultIcon = "chrome://browser/content/extension.svg";
|
let defaultIcon = "chrome://mozapps/skin/extensions/extensionGeneric.svg";
|
||||||
let details = [
|
let details = [
|
||||||
{
|
{
|
||||||
icon: browser.runtime.getURL("default.png"),
|
icon: browser.runtime.getURL("default.png"),
|
||||||
|
@ -107,10 +107,7 @@ browser/chrome/browser/search-extensions/yandex/yandex-en.ico
|
|||||||
browser/chrome/browser/content/activity-stream/data/content/tippytop/favicons/yandex-ru.png
|
browser/chrome/browser/content/activity-stream/data/content/tippytop/favicons/yandex-ru.png
|
||||||
browser/chrome/browser/search-extensions/yandex/yandex-ru.ico
|
browser/chrome/browser/search-extensions/yandex/yandex-ru.ico
|
||||||
|
|
||||||
# Bug 1708008 - De-duplicate extension icons
|
# Bug 1720584 - De-duplicate theme and customize icons
|
||||||
browser/chrome/browser/content/browser/extension.svg
|
|
||||||
chrome/toolkit/skin/classic/mozapps/extensions/extension.svg
|
|
||||||
chrome/toolkit/skin/classic/mozapps/extensions/extensionGeneric.svg
|
|
||||||
chrome/toolkit/skin/classic/mozapps/extensions/themeGeneric.svg
|
chrome/toolkit/skin/classic/mozapps/extensions/themeGeneric.svg
|
||||||
browser/chrome/browser/skin/classic/browser/customize.svg
|
browser/chrome/browser/skin/classic/browser/customize.svg
|
||||||
|
|
||||||
|
@ -324,7 +324,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.popup-notification-icon[popupid="addon-install-confirmation"] {
|
.popup-notification-icon[popupid="addon-install-confirmation"] {
|
||||||
list-style-image: url(chrome://browser/content/extension.svg);
|
list-style-image: url(chrome://mozapps/skin/extensions/extension.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#addon-install-confirmation-notification[warning] .popup-notification-icon[popupid="addon-install-confirmation"] {
|
#addon-install-confirmation-notification[warning] .popup-notification-icon[popupid="addon-install-confirmation"] {
|
||||||
|
@ -1542,7 +1542,7 @@ function watchExtensionProxyContextLoad(
|
|||||||
// Manages icon details for toolbar buttons in the |pageAction| and
|
// Manages icon details for toolbar buttons in the |pageAction| and
|
||||||
// |browserAction| APIs.
|
// |browserAction| APIs.
|
||||||
let IconDetails = {
|
let IconDetails = {
|
||||||
DEFAULT_ICON: "chrome://browser/content/extension.svg",
|
DEFAULT_ICON: "chrome://mozapps/skin/extensions/extensionGeneric.svg",
|
||||||
|
|
||||||
// WeakMap<Extension -> Map<url-string -> Map<iconType-string -> object>>>
|
// WeakMap<Extension -> Map<url-string -> Map<iconType-string -> object>>>
|
||||||
iconCache: new DefaultWeakMap(() => {
|
iconCache: new DefaultWeakMap(() => {
|
||||||
@ -1662,7 +1662,7 @@ let IconDetails = {
|
|||||||
// Returns the appropriate icon URL for the given icons object and the
|
// Returns the appropriate icon URL for the given icons object and the
|
||||||
// screen resolution of the given window.
|
// screen resolution of the given window.
|
||||||
getPreferredIcon(icons, extension = null, size = 16) {
|
getPreferredIcon(icons, extension = null, size = 16) {
|
||||||
const DEFAULT = "chrome://browser/content/extension.svg";
|
const DEFAULT = "chrome://mozapps/skin/extensions/extensionGeneric.svg";
|
||||||
|
|
||||||
let bestSize = null;
|
let bestSize = null;
|
||||||
if (icons[size]) {
|
if (icons[size]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user