0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00

Fix and enable firefox-view.patch again

This commit is contained in:
Malte Jürgens 2023-11-04 13:52:28 +01:00
parent cf2a55c82c
commit e369c0bf43
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3
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