Commit 2605d126 authored by ma1's avatar ma1 Committed by Pier Angelo Vendrame
Browse files

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

parent b6acb7d3
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1555,8 +1555,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.