# LibreWolf firefox-view.patch # # Author: Malte Jürgens # Description: Hide "Firefox View" by default and make it work with LibreWolf # Last Updated: 2023-01-18 # 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. # # Colorways are hidden by default and can be enabled again by setting # `librewolf.firefoxView.hideColorways` to `false`. # # The tab pickup feature is hidden if Firefox Sync is disabled. It can also # be forced to always be disabled by setting `librewolf.firefoxView.hideTabPickup` # to `true`. diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml index 46f1524..4473024 100644 --- a/browser/base/content/navigator-toolbox.inc.xhtml +++ b/browser/base/content/navigator-toolbox.inc.xhtml @@ -41,16 +41,6 @@ - - + + diff --git a/browser/components/customizableui/CustomizableUI.jsm b/browser/components/customizableui/CustomizableUI.jsm index d43758e..ed9849f 100644 --- a/browser/components/customizableui/CustomizableUI.jsm +++ b/browser/components/customizableui/CustomizableUI.jsm @@ -298,7 +298,6 @@ var CustomizableUIInternal = { { type: CustomizableUI.TYPE_TOOLBAR, defaultPlacements: [ - "firefox-view-button", "tabbrowser-tabs", "new-tab-button", "alltabs-button", @@ -627,18 +626,6 @@ var CustomizableUIInternal = { navbarPlacements.splice(newPosition, 0, "save-to-pocket-button"); } } - - // Add firefox-view if not present - if (currentVersion < 18) { - let tabstripPlacements = - gSavedState.placements[CustomizableUI.AREA_TABSTRIP]; - if ( - tabstripPlacements && - !tabstripPlacements.includes("firefox-view-button") - ) { - tabstripPlacements.unshift("firefox-view-button"); - } - } }, _updateForNewProtonVersion() { diff --git a/browser/components/firefoxview/firefoxview.html b/browser/components/firefoxview/firefoxview.html index 099c244..978a140 100644 --- a/browser/components/firefoxview/firefoxview.html +++ b/browser/components/firefoxview/firefoxview.html @@ -35,7 +35,7 @@
-
+