tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 75ac156647d6a4c1a9c93ce80941b48dba2aa13a
parent e3bbe153c40e5c5236b9f38777c17d3152867275
Author: hackademix <giorgio@maone.net>
Date:   Thu,  6 Jul 2023 00:10:24 +0200

BB 41834: Hide "Can't Be Removed - learn more" menu line for uninstallable add-ons

Diffstat:
Mtoolkit/mozapps/extensions/content/aboutaddons.js | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/toolkit/mozapps/extensions/content/aboutaddons.js b/toolkit/mozapps/extensions/content/aboutaddons.js @@ -1607,8 +1607,11 @@ class AddonOptions extends HTMLElement { el.disabled = false; el.hidden = false; document.l10n.setAttributes(el, "remove-addon-button"); - } else if (addon.isBuiltin) { - // Likely the built-in themes, can't be removed, that's fine. + // eslint-disable-next-line max-len + // eslint-disable-next-line no-constant-condition, no-constant-binary-expression + } else if (true || addon.isBuiltin) { + // Just hide the uninstall button for any "special" add-on + // which can't be removed (tor-browser#41834) el.hidden = true; } else { // Likely sideloaded, mention that it can't be removed with a link.