mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-04-11 09:02:03 -07:00
Fix auto pin extensions patch
This commit is contained in:
parent
3fd0ddc2f8
commit
03d0c3455b
1 changed files with 8 additions and 11 deletions
|
|
@ -1,17 +1,14 @@
|
||||||
diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js
|
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
|
--- a/browser/base/content/browser-addons.js
|
||||||
+++ b/browser/base/content/browser-addons.js
|
+++ b/browser/base/content/browser-addons.js
|
||||||
@@ -1873,6 +1873,11 @@ var gUnifiedExtensions = {
|
@@ -1924,6 +1924,8 @@ var gUnifiedExtensions = {
|
||||||
// will be overflowed directly. In this case, we do not want to change the
|
// class and not the `.toolbarbutton-1` one. When NOT placed in the panel,
|
||||||
// class name since it is going to be changed by `onWidgetOverflow()`
|
// it is the other way around.
|
||||||
// below.
|
_updateWidgetClassName(aWidgetId, inPanel) {
|
||||||
+ if (aArea !== CustomizableUI.AREA_NAVBAR) {
|
+ inPanel = false;
|
||||||
+ aArea = CustomizableUI.AREA_NAVBAR;
|
+ this.pinToToolbar(aWidgetId, true);
|
||||||
+ this.pinToToolbar(aWidgetId, true);
|
if (!CustomizableUI.isWebExtensionWidget(aWidgetId)) {
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if (CustomizableUI.getWidget(aWidgetId)?.forWindow(window)?.overflowed) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
diff --git a/browser/base/content/main-popupset.inc.xhtml b/browser/base/content/main-popupset.inc.xhtml
|
diff --git a/browser/base/content/main-popupset.inc.xhtml b/browser/base/content/main-popupset.inc.xhtml
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue