[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-115.0esrbase-13.0-1] Bug 41834: Hide "Can't Be Removed - learn more" menu line for uninstallable add-ons

ma1 (@ma1) git at gitlab.torproject.org
Thu Jul 6 13:52:10 UTC 2023



ma1 pushed to branch base-browser-115.0esrbase-13.0-1 at The Tor Project / Applications / Tor Browser


Commits:
e4fae18a by hackademix at 2023-07-06T15:46:27+02:00
Bug 41834: Hide "Can't Be Removed - learn more" menu line for uninstallable add-ons

- - - - -


1 changed file:

- toolkit/mozapps/extensions/content/aboutaddons.js


Changes:

=====================================
toolkit/mozapps/extensions/content/aboutaddons.js
=====================================
@@ -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.



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/e4fae18afa97556839332320e9a340546a47b392

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/e4fae18afa97556839332320e9a340546a47b392
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230706/ee2a1dfb/attachment-0001.htm>


More information about the tbb-commits mailing list