0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-03 03:10:07 -05:00

add firefox-view-no-default.patch

This commit is contained in:
Malte Jürgens 2022-10-19 23:51:08 +02:00
parent 0ece4b73fc
commit db7e4cb6de
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3
2 changed files with 30 additions and 0 deletions

View file

@ -12,6 +12,7 @@ patches/sed-patches/allow-searchengines-non-esr.patch
patches/sed-patches/disable-pocket.patch patches/sed-patches/disable-pocket.patch
patches/sed-patches/remove-internal-plugin-certs.patch patches/sed-patches/remove-internal-plugin-certs.patch
patches/sed-patches/stop-undesired-requests.patch patches/sed-patches/stop-undesired-requests.patch
patches/ui-patches/firefox-view-no-default.patch
patches/ui-patches/handlers.patch patches/ui-patches/handlers.patch
patches/ui-patches/hide-default-browser.patch patches/ui-patches/hide-default-browser.patch
patches/ui-patches/lw-logo-devtools.patch patches/ui-patches/lw-logo-devtools.patch

View file

@ -0,0 +1,29 @@
--- a/browser/components/customizableui/CustomizableUI.jsm
+++ b/browser/components/customizableui/CustomizableUI.jsm
@@ -277,7 +277,6 @@ var CustomizableUIInternal = {
{
type: CustomizableUI.TYPE_TOOLBAR,
defaultPlacements: [
- "firefox-view-button",
"tabbrowser-tabs",
"new-tab-button",
"alltabs-button",
@@ -605,18 +604,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() {