mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 13:32:06 -08:00
Auto pin extensions
This commit is contained in:
parent
4b5e86dc52
commit
0be654bbe9
2 changed files with 30 additions and 0 deletions
29
patches/auto-pin-extensions.patch
Normal file
29
patches/auto-pin-extensions.patch
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
cd camoufox-129.0-beta && git diff
|
||||
diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js
|
||||
index d071b231aa..1733b17fd1 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) {
|
||||
return;
|
||||
}
|
||||
diff --git a/browser/base/content/main-popupset.inc.xhtml b/browser/base/content/main-popupset.inc.xhtml
|
||||
index 1fb595272a..389d436e90 100644
|
||||
--- a/browser/base/content/main-popupset.inc.xhtml
|
||||
+++ b/browser/base/content/main-popupset.inc.xhtml
|
||||
@@ -286,7 +286,6 @@
|
||||
type="checkbox"
|
||||
contexttype="toolbaritem"
|
||||
class="customize-context-pinToToolbar"/>
|
||||
- <menuseparator id="toolbarDownloadsAnchorMenuSeparator"/>
|
||||
<menuitem id="toolbar-context-always-open-downloads-panel"
|
||||
type="checkbox"
|
||||
data-lazy-l10n-id="toolbar-context-menu-always-open-downloads-panel"
|
||||
|
|
@ -162,6 +162,7 @@ panel {
|
|||
#star-button-box,
|
||||
#urlbar-go-button,
|
||||
#unified-extensions-button,
|
||||
.customize-context-pinToToolbar,
|
||||
#PersonalToolbar,
|
||||
#appMenu-library-remotetabs-button {
|
||||
display: none !important;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue