Verified Commit c313e865 authored by ma1's avatar ma1 Committed by Pier Angelo Vendrame
Browse files

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

parent 81a09573
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1492,8 +1492,9 @@ 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.
        } 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.