0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-21 21:23:08 -05:00

Merge branch 'main' of codeberg.org:librewolf/source

This commit is contained in:
Bert van der Weerd 2023-11-04 14:31:03 +01:00
commit 9b6ee34406
No known key found for this signature in database
GPG key ID: 73370A0B9E5516B0
2 changed files with 21 additions and 1 deletions

View file

@ -16,6 +16,7 @@ patches/remove_addons.patch
patches/sed-patches/allow-searchengines-non-esr.patch
patches/sed-patches/disable-pocket.patch
patches/sed-patches/stop-undesired-requests.patch
patches/ui-patches/firefox-view.patch
patches/ui-patches/handlers.patch
patches/ui-patches/hide-default-browser.patch
patches/ui-patches/lw-logo-devtools.patch

View file

@ -2,12 +2,31 @@
#
# Author: Malte Jürgens <maltejur@dismail.de>
# Description: Hide "Firefox View" by default
# Last Updated: 2023-10-30
# Last Updated: 2023-11-04
# 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.
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -9929,10 +9929,11 @@ var FirefoxViewHandler = {
!this._enabled
);
document.getElementById("menu_openFirefoxView").hidden = !this._enabled;
- document.getElementById("firefox-view-button").style.listStyleImage =
- NimbusFeatures.firefoxViewNext.getVariable("newIcon")
- ? ""
- : 'url("chrome://branding/content/about-logo.png")';
+ if (this.button)
+ this.button.style.listStyleImage =
+ NimbusFeatures.firefoxViewNext.getVariable("newIcon")
+ ? ""
+ : 'url("chrome://branding/content/about-logo.png")';
},
onWidgetRemoved(aWidgetId) {
if (aWidgetId == this.BUTTON_ID && this.tab) {
diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml
--- a/browser/base/content/navigator-toolbox.inc.xhtml
+++ b/browser/base/content/navigator-toolbox.inc.xhtml