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:
parent
0ece4b73fc
commit
db7e4cb6de
2 changed files with 30 additions and 0 deletions
|
@ -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
|
||||||
|
|
29
patches/ui-patches/firefox-view-no-default.patch
Normal file
29
patches/ui-patches/firefox-view-no-default.patch
Normal 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() {
|
Loading…
Reference in a new issue