Fix auto pin extensions patch

This commit is contained in:
daijro 2024-08-13 23:26:51 -05:00
parent 3fd0ddc2f8
commit 03d0c3455b

View file

@ -1,17 +1,14 @@
diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js
index d071b231aa..1733b17fd1 100644
index d071b231aa..9bcf162160 100644
--- a/browser/base/content/browser-addons.js
+++ b/browser/base/content/browser-addons.js
@@ -1873,6 +1873,11 @@ var gUnifiedExtensions = {
// will be overflowed directly. In this case, we do not want to change the
// class name since it is going to be changed by `onWidgetOverflow()`
// below.
+ if (aArea !== CustomizableUI.AREA_NAVBAR) {
+ aArea = CustomizableUI.AREA_NAVBAR;
+ this.pinToToolbar(aWidgetId, true);
+ }
+
if (CustomizableUI.getWidget(aWidgetId)?.forWindow(window)?.overflowed) {
@@ -1924,6 +1924,8 @@ var gUnifiedExtensions = {
// class and not the `.toolbarbutton-1` one. When NOT placed in the panel,
// it is the other way around.
_updateWidgetClassName(aWidgetId, inPanel) {
+ inPanel = false;
+ this.pinToToolbar(aWidgetId, true);
if (!CustomizableUI.isWebExtensionWidget(aWidgetId)) {
return;
}
diff --git a/browser/base/content/main-popupset.inc.xhtml b/browser/base/content/main-popupset.inc.xhtml