# LibreWolf firefox-view.patch # # Author: Malte Jürgens # Description: Hide "Firefox View" by default and make it work with LibreWolf # Last Updated: 2023-03-15 # 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`. --- a/browser/base/content/navigator-toolbox.inc.xhtml +++ b/browser/base/content/navigator-toolbox.inc.xhtml @@ -41,16 +41,6 @@ - - + + --- a/browser/components/customizableui/CustomizableUI.jsm +++ b/browser/components/customizableui/CustomizableUI.jsm @@ -289,7 +289,6 @@ var CustomizableUIInternal = { { type: CustomizableUI.TYPE_TOOLBAR, defaultPlacements: [ - "firefox-view-button", "tabbrowser-tabs", "new-tab-button", "alltabs-button", @@ -620,18 +619,6 @@ var CustomizableUIInternal = { } } - // 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"); - } - } - // Unified Extensions addon button migration, which puts any browser action // buttons in the overflow menu into the addons panel instead. if (currentVersion < 19) { --- a/browser/components/firefoxview/firefoxview.html +++ b/browser/components/firefoxview/firefoxview.html @@ -34,7 +34,7 @@
-
+