Bug 1698237 - Backed out changeset 18909220355a (bug 1697806).

Differential Revision: https://phabricator.services.mozilla.com/D108316
This commit is contained in:
Tim Nguyen 2021-03-13 16:06:33 +00:00
Родитель 9bfde53e84
Коммит ad5b1fde34
10 изменённых файлов: 35 добавлений и 9 удалений

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

@ -182,7 +182,13 @@ function triggerPageOptionsAction(win, action) {
} }
function isDefaultIcon(icon) { function isDefaultIcon(icon) {
return icon == "chrome://mozapps/skin/extensions/extensionGeneric.svg"; // These are basically the same icon, but code within webextensions
// 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"
);
} }
/** /**

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

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 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" xmlns:xlink="http://www.w3.org/1999/xlink"
width="64" height="64" viewBox="0 0 64 64">
<defs>
<style>
.style-puzzle-piece {
fill: url('#gradient-linear-puzzle-piece');
}
</style>
<linearGradient id="gradient-linear-puzzle-piece" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" stop-color="#66cc52" stop-opacity="1"/>
<stop offset="100%" stop-color="#60bf4c" stop-opacity="1"/>
</linearGradient>
</defs>
<path class="style-puzzle-piece" d="M42,62c2.2,0,4-1.8,4-4l0-14.2c0,0,0.4-3.7,2.8-3.7c2.4,0,2.2,3.9,6.7,3.9c2.3,0,6.2-1.2,6.2-8.2 c0-7-3.9-7.9-6.2-7.9c-4.5,0-4.3,3.7-6.7,3.7c-2.4,0-2.8-3.8-2.8-3.8V22c0-2.2-1.8-4-4-4H31.5c0,0-3.4-0.6-3.4-3 c0-2.4,3.8-2.6,3.8-7.1c0-2.3-1.3-5.9-8.3-5.9s-8,3.6-8,5.9c0,4.5,3.4,4.7,3.4,7.1c0,2.4-3.4,3-3.4,3H6c-2.2,0-4,1.8-4,4l0,7.8 c0,0-0.4,6,4.4,6c3.1,0,3.2-4.1,7.3-4.1c2,0,4,1.9,4,6c0,4.2-2,6.3-4,6.3c-4,0-4.2-4.1-7.3-4.1c-4.8,0-4.4,5.8-4.4,5.8L2,58 c0,2.2,1.8,4,4,4H19c0,0,6.3,0.4,6.3-4.4c0-3.1-4-3.6-4-7.7c0-2,2.2-4.5,6.4-4.5c4.2,0,6.6,2.5,6.6,4.5c0,4-3.9,4.6-3.9,7.7 c0,4.9,6.3,4.4,6.3,4.4H42z"/>
</svg>

После

Ширина:  |  Высота:  |  Размер: 1.4 KiB

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

@ -11,6 +11,7 @@ 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)

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

@ -563,7 +563,7 @@ add_task(async function testPropertyRemoval() {
}, },
getTests: function(tabs, windows) { getTests: function(tabs, windows) {
let defaultIcon = "chrome://mozapps/skin/extensions/extensionGeneric.svg"; let defaultIcon = "chrome://browser/content/extension.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://mozapps/skin/extensions/extensionGeneric.svg"; const DEFAULT_ICON = "chrome://browser/content/extension.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://mozapps/skin/extensions/extensionGeneric.svg"; let defaultIcon = "chrome://browser/content/extension.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://mozapps/skin/extensions/extensionGeneric.svg"; let defaultIcon = "chrome://browser/content/extension.svg";
let details = [ let details = [
{ {
icon: browser.runtime.getURL("default.png"), icon: browser.runtime.getURL("default.png"),

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

@ -147,7 +147,7 @@ var UrlbarUtils = {
// This defines icon locations that are commonly used in the UI. // This defines icon locations that are commonly used in the UI.
ICON: { ICON: {
// DEFAULT is defined lazily so it doesn't eagerly initialize PlacesUtils. // DEFAULT is defined lazily so it doesn't eagerly initialize PlacesUtils.
EXTENSION: "chrome://mozapps/skin/extensions/extensionGeneric.svg", EXTENSION: "chrome://browser/content/extension.svg",
HISTORY: "chrome://browser/skin/history.svg", HISTORY: "chrome://browser/skin/history.svg",
SEARCH_GLASS: "chrome://global/skin/icons/search-glass.svg", SEARCH_GLASS: "chrome://global/skin/icons/search-glass.svg",
SEARCH_GLASS_INVERTED: "chrome://browser/skin/search-glass-inverted.svg", SEARCH_GLASS_INVERTED: "chrome://browser/skin/search-glass-inverted.svg",

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

@ -299,7 +299,7 @@ html|*#webRTC-previewVideo {
} }
.popup-notification-icon[popupid="addon-install-confirmation"] { .popup-notification-icon[popupid="addon-install-confirmation"] {
list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric.svg); list-style-image: url(chrome://browser/content/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"] {

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

@ -1555,7 +1555,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://mozapps/skin/extensions/extensionGeneric.svg", DEFAULT_ICON: "chrome://browser/content/extension.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(() => {
@ -1675,7 +1675,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://mozapps/skin/extensions/extensionGeneric.svg"; const DEFAULT = "chrome://browser/content/extension.svg";
let bestSize = null; let bestSize = null;
if (icons[size]) { if (icons[size]) {