mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 05:33:03 -05:00
fix firefox view patch for 133
This commit is contained in:
parent
1db843e835
commit
dfdcbbf655
1 changed files with 21 additions and 31 deletions
|
@ -1,16 +1,8 @@
|
||||||
# LibreWolf firefox-view.patch
|
diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml
|
||||||
#
|
index eb2d8670874b..e57694a72bd3 100644
|
||||||
# Author: Malte Jürgens <maltejur@dismail.de>
|
|
||||||
# Description: Hide "Firefox View" by default
|
|
||||||
# Last Updated: 2024-02-23
|
|
||||||
# License: MPL 2.0
|
|
||||||
#
|
|
||||||
# This patch removes the Firefox View from the toolbar by default. Users can
|
|
||||||
# enable it again by using the "Customize Toolbar" mode and dragging it back to
|
|
||||||
# the titlebar.
|
|
||||||
--- a/browser/base/content/navigator-toolbox.inc.xhtml
|
--- a/browser/base/content/navigator-toolbox.inc.xhtml
|
||||||
+++ b/browser/base/content/navigator-toolbox.inc.xhtml
|
+++ b/browser/base/content/navigator-toolbox.inc.xhtml
|
||||||
@@ -35,16 +35,6 @@
|
@@ -35,14 +35,6 @@
|
||||||
<hbox flex="1" align="end" class="toolbar-items">
|
<hbox flex="1" align="end" class="toolbar-items">
|
||||||
<toolbartabstop/>
|
<toolbartabstop/>
|
||||||
<hbox id="TabsToolbar-customization-target" flex="1">
|
<hbox id="TabsToolbar-customization-target" flex="1">
|
||||||
|
@ -19,15 +11,13 @@
|
||||||
- data-l10n-id="toolbar-button-firefox-view-2"
|
- data-l10n-id="toolbar-button-firefox-view-2"
|
||||||
- role="button"
|
- role="button"
|
||||||
- aria-pressed="false"
|
- aria-pressed="false"
|
||||||
- oncommand="FirefoxViewHandler.openTab();"
|
|
||||||
- onmousedown="FirefoxViewHandler.openToolbarMouseEvent(event);"
|
|
||||||
- cui-areatype="toolbar"
|
- cui-areatype="toolbar"
|
||||||
- removable="true"/>
|
- removable="true"/>
|
||||||
-
|
-
|
||||||
<tabs id="tabbrowser-tabs"
|
<tabs id="tabbrowser-tabs"
|
||||||
is="tabbrowser-tabs"
|
is="tabbrowser-tabs"
|
||||||
aria-multiselectable="true"
|
aria-multiselectable="true"
|
||||||
@@ -718,5 +708,15 @@
|
@@ -667,5 +659,13 @@
|
||||||
closemenu="none"
|
closemenu="none"
|
||||||
cui-areatype="toolbar"
|
cui-areatype="toolbar"
|
||||||
data-l10n-id="navbar-library"/>
|
data-l10n-id="navbar-library"/>
|
||||||
|
@ -37,15 +27,15 @@
|
||||||
+ data-l10n-id="toolbar-button-firefox-view-2"
|
+ data-l10n-id="toolbar-button-firefox-view-2"
|
||||||
+ role="button"
|
+ role="button"
|
||||||
+ aria-pressed="false"
|
+ aria-pressed="false"
|
||||||
+ oncommand="FirefoxViewHandler.openTab();"
|
|
||||||
+ onmousedown="FirefoxViewHandler.openToolbarMouseEvent(event);"
|
|
||||||
+ cui-areatype="toolbar"
|
+ cui-areatype="toolbar"
|
||||||
+ removable="true"/>
|
+ removable="true"/>
|
||||||
</html:template>
|
</html:template>
|
||||||
</toolbox>
|
</toolbox>
|
||||||
|
diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||||
|
index 45d0e0e4872e..4ed336da6bb5 100644
|
||||||
--- a/browser/components/customizableui/CustomizableUI.sys.mjs
|
--- a/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||||
+++ b/browser/components/customizableui/CustomizableUI.sys.mjs
|
+++ b/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||||
@@ -287,7 +287,6 @@ var CustomizableUIInternal = {
|
@@ -347,7 +347,6 @@ var CustomizableUIInternal = {
|
||||||
{
|
{
|
||||||
type: CustomizableUI.TYPE_TOOLBAR,
|
type: CustomizableUI.TYPE_TOOLBAR,
|
||||||
defaultPlacements: [
|
defaultPlacements: [
|
||||||
|
@ -53,7 +43,7 @@
|
||||||
"tabbrowser-tabs",
|
"tabbrowser-tabs",
|
||||||
"new-tab-button",
|
"new-tab-button",
|
||||||
"alltabs-button",
|
"alltabs-button",
|
||||||
@@ -616,18 +615,6 @@ var CustomizableUIInternal = {
|
@@ -707,18 +706,6 @@ var CustomizableUIInternal = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue