From a408449e2c442ad1d3c07facef9158f2c6527f91 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Tue, 28 Jan 2025 16:27:56 +0100 Subject: [PATCH 001/191] Updated to firefox RC 135.0 --- README.md | 2 +- .../base/content/browser-sets-js.patch | 10 +- src/browser/base/content/browser-xhtml.patch | 10 +- .../content/main-popupset-inc-xhtml.patch | 12 +- .../zen-styles/zen-tabs/vertical-tabs.css | 6 +- .../CustomizableUI-sys-mjs.patch | 34 ++-- .../content/editBookmarkPanel-inc-xhtml.patch | 72 ++++--- .../sidebar/browser-sidebar-js.patch | 36 ---- .../tabbrowser/content/tabbrowser-js.patch | 52 +++--- .../tabbrowser/content/tabs-js.patch | 62 +++--- .../customizableui/panelUI-shared-css.patch | 8 +- src/browser/themes/windows/browser-css.patch | 20 +- src/widget/windows/nsWindow-cpp.patch | 176 ------------------ surfer.json | 4 +- 14 files changed, 135 insertions(+), 369 deletions(-) delete mode 100644 src/browser/components/sidebar/browser-sidebar-js.patch delete mode 100644 src/widget/windows/nsWindow-cpp.patch diff --git a/README.md b/README.md index 036ad3d8f..a82bb05f4 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Zen is currently built using firefox version `134.0.2`! 🚀 -- [`Zen Twilight`](https://zen-browser.app/download?twilight) - Is currently built using firefox version `RC 134.0.2`! +- [`Zen Twilight`](https://zen-browser.app/download?twilight) - Is currently built using firefox version `RC 135.0`! - Check out the latest [release notes](https://zen-browser.app/release-notes)! - Part of our mission is to keep Zen up-to-date with the latest version of Firefox, so you can enjoy the latest features and security updates! diff --git a/src/browser/base/content/browser-sets-js.patch b/src/browser/base/content/browser-sets-js.patch index be4f74496..78d0fb929 100644 --- a/src/browser/base/content/browser-sets-js.patch +++ b/src/browser/base/content/browser-sets-js.patch @@ -1,13 +1,13 @@ diff --git a/browser/base/content/browser-sets.js b/browser/base/content/browser-sets.js -index 3031278749317d153624c6ccfbcc9d47aaf4089f..e67a8c3b56c01334627350c494b0139638ebf19a 100644 +index 61aef2d420a78fb1910f556b71f6db75a16180ed..a3a1e70bedb760c165c338c28de6f2ee924df8de 100644 --- a/browser/base/content/browser-sets.js +++ b/browser/base/content/browser-sets.js -@@ -245,7 +245,7 @@ document.addEventListener( +@@ -250,7 +250,7 @@ document.addEventListener( } }); - document.getElementById("mainKeyset").addEventListener("command", event => { + document.getElementById("zenKeyset").addEventListener("command", event => { - switch (event.target.id) { - case "goHome": - BrowserCommands.home(); + const SIDEBAR_REVAMP_PREF = "sidebar.revamp"; + const SIDEBAR_REVAMP_ENABLED = Services.prefs.getBoolPref( + SIDEBAR_REVAMP_PREF, diff --git a/src/browser/base/content/browser-xhtml.patch b/src/browser/base/content/browser-xhtml.patch index de5a5be77..f55a99295 100644 --- a/src/browser/base/content/browser-xhtml.patch +++ b/src/browser/base/content/browser-xhtml.patch @@ -1,17 +1,17 @@ diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml -index ca8953f3604f4f70de76576964af5f3c733f17a0..a2731ef6d4392301217cd05f6583e4814f1118e2 100644 +index 891c067d6ad718061c410c04743bed25744504b5..560abfe817b94f535919ed29c21a912b09d63ac5 100644 --- a/browser/base/content/browser.xhtml +++ b/browser/base/content/browser.xhtml -@@ -101,6 +101,8 @@ +@@ -99,6 +99,8 @@ - + +#include zen-preloaded.inc.xhtml + # All JS files which are needed by browser.xhtml and other top level windows to # support MacOS specific features *must* go into the global-scripts.inc file so # that they can be shared with macWindow.inc.xhtml. -@@ -145,6 +147,7 @@ +@@ -143,6 +145,7 @@ window.addEventListener("DOMContentLoaded", gBrowserInit.onDOMContentLoaded.bind(gBrowserInit), { once: true }); @@ -19,7 +19,7 @@ index ca8953f3604f4f70de76576964af5f3c733f17a0..a2731ef6d4392301217cd05f6583e481 # All sets except for popupsets (commands, keys, and stringbundles) -@@ -166,9 +169,12 @@ +@@ -164,9 +167,12 @@ diff --git a/src/browser/base/content/main-popupset-inc-xhtml.patch b/src/browser/base/content/main-popupset-inc-xhtml.patch index b1423139c..1ebbd1437 100644 --- a/src/browser/base/content/main-popupset-inc-xhtml.patch +++ b/src/browser/base/content/main-popupset-inc-xhtml.patch @@ -1,8 +1,8 @@ diff --git a/browser/base/content/main-popupset.inc.xhtml b/browser/base/content/main-popupset.inc.xhtml -index 1fb595272a184f9a40f56f87d86232e3324f7750..8dd0f0ff856be524a5fa27fb8c6180c1fe058134 100644 +index e5f3424eaeeec0ba552537f167dd99e912216d94..4bdfcdb23fe9c44ad3d4de273c64f4cc31cb4034 100644 --- a/browser/base/content/main-popupset.inc.xhtml +++ b/browser/base/content/main-popupset.inc.xhtml -@@ -144,6 +144,10 @@ +@@ -181,6 +181,10 @@ hidden="true" tabspecific="true" aria-labelledby="editBookmarkPanelTitle"> @@ -13,17 +13,17 @@ index 1fb595272a184f9a40f56f87d86232e3324f7750..8dd0f0ff856be524a5fa27fb8c6180c1 -@@ -169,6 +173,7 @@ +@@ -206,6 +210,7 @@ class="footer-button"/> -+ ++ -@@ -454,6 +459,8 @@ +@@ -535,6 +540,8 @@ - #include popup-notifications.inc + #include popup-notifications.inc.xhtml +#include zen-popupset.inc.xhtml + diff --git a/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css b/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css index f4fc23bc2..de8f2e81d 100644 --- a/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css +++ b/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css @@ -20,8 +20,10 @@ } @media (-moz-platform: macos) and (not (-moz-bool-pref: 'zen.view.mac.show-three-dot-menu')) { - &:not([customizing]) #PanelUI-button { - display: none; + &:not([customizing]) #PanelUI-button:not([open]):not([panelopen]) { + position: absolute; + opacity: 0; + pointer-events: none; } } diff --git a/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch b/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch index c3b97085e..007ff5efc 100644 --- a/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch +++ b/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch @@ -1,5 +1,5 @@ diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs -index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729be3bead4a 100644 +index e6b9b7dcfab179e7552c146eb1551b45ad042266..d9d838a7a51f67b52b69f419024cc3174ae5260b 100644 --- a/browser/components/customizableui/CustomizableUI.sys.mjs +++ b/browser/components/customizableui/CustomizableUI.sys.mjs @@ -13,6 +13,7 @@ ChromeUtils.defineESModuleGetters(lazy, { @@ -19,8 +19,8 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b const kSpecialWidgetPfx = "customizableui-special-"; -@@ -307,13 +308,11 @@ var CustomizableUIInternal = { - "spring", +@@ -317,13 +318,11 @@ var CustomizableUIInternal = { + "vertical-spacer", "urlbar-container", "spring", - "save-to-pocket-button", @@ -35,7 +35,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b this.registerArea( CustomizableUI.AREA_NAVBAR, { -@@ -321,7 +320,6 @@ var CustomizableUIInternal = { +@@ -331,7 +330,6 @@ var CustomizableUIInternal = { overflowable: true, defaultPlacements: navbarPlacements, verticalTabsDefaultPlacements: [ @@ -43,7 +43,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b "alltabs-button", ], defaultCollapsed: false, -@@ -346,10 +344,7 @@ var CustomizableUIInternal = { +@@ -356,10 +354,7 @@ var CustomizableUIInternal = { { type: CustomizableUI.TYPE_TOOLBAR, defaultPlacements: [ @@ -54,7 +54,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b ], verticalTabsDefaultPlacements: [], defaultCollapsed: null, -@@ -412,6 +407,7 @@ var CustomizableUIInternal = { +@@ -422,6 +417,7 @@ var CustomizableUIInternal = { CustomizableUI.AREA_NAVBAR, CustomizableUI.AREA_BOOKMARKS, CustomizableUI.AREA_TABSTRIP, @@ -62,7 +62,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b ]); if (AppConstants.platform != "macosx") { toolbars.add(CustomizableUI.AREA_MENUBAR); -@@ -1127,6 +1123,9 @@ var CustomizableUIInternal = { +@@ -1151,6 +1147,9 @@ var CustomizableUIInternal = { placements = gPlacements.get(area); } @@ -72,7 +72,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b // For toolbars that need it, mark as dirty. let defaultPlacements = areaProperties.get("defaultPlacements"); if ( -@@ -1540,7 +1539,7 @@ var CustomizableUIInternal = { +@@ -1564,7 +1563,7 @@ var CustomizableUIInternal = { lazy.log.info( "Widget " + aWidgetId + " not found, unable to remove from " + aArea ); @@ -81,7 +81,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b } this.notifyDOMChange(widgetNode, null, container, true, () => { -@@ -1550,7 +1549,7 @@ var CustomizableUIInternal = { +@@ -1574,7 +1573,7 @@ var CustomizableUIInternal = { // We also need to remove the panel context menu if it's there: this.ensureButtonContextMenu(widgetNode); if (gPalette.has(aWidgetId) || this.isSpecialWidget(aWidgetId)) { @@ -90,7 +90,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b } else { window.gNavToolbox.palette.appendChild(widgetNode); } -@@ -2654,7 +2653,6 @@ var CustomizableUIInternal = { +@@ -2678,7 +2677,6 @@ var CustomizableUIInternal = { if (!this.isWidgetRemovable(aWidgetId)) { return; } @@ -98,7 +98,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b let placements = gPlacements.get(oldPlacement.area); let position = placements.indexOf(aWidgetId); if (position != -1) { -@@ -3609,7 +3607,7 @@ var CustomizableUIInternal = { +@@ -3669,7 +3667,7 @@ var CustomizableUIInternal = { } }, @@ -107,7 +107,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b for (let [areaId, areaNodes] of gBuildAreas) { let placements = gPlacements.get(areaId); let isFirstChangedToolbar = true; -@@ -3620,7 +3618,7 @@ var CustomizableUIInternal = { +@@ -3680,7 +3678,7 @@ var CustomizableUIInternal = { if (area.get("type") == CustomizableUI.TYPE_TOOLBAR) { let defaultCollapsed = area.get("defaultCollapsed"); let win = areaNode.ownerGlobal; @@ -116,7 +116,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b win.setToolbarVisibility( areaNode, typeof defaultCollapsed == "string" -@@ -4583,6 +4581,7 @@ export var CustomizableUI = { +@@ -4658,6 +4656,7 @@ export var CustomizableUI = { unregisterArea(aName, aDestroyPlacements) { CustomizableUIInternal.unregisterArea(aName, aDestroyPlacements); }, @@ -124,7 +124,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b /** * Add a widget to an area. * If the area to which you try to add is not known to CustomizableUI, -@@ -6408,11 +6407,11 @@ class OverflowableToolbar { +@@ -6483,11 +6482,11 @@ class OverflowableToolbar { parseFloat(style.paddingLeft) - parseFloat(style.paddingRight) - toolbarChildrenWidth; @@ -138,7 +138,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b }); lazy.log.debug( -@@ -6422,7 +6421,8 @@ class OverflowableToolbar { +@@ -6497,7 +6496,8 @@ class OverflowableToolbar { // If the target has min-width: 0, their children might actually overflow // it, so check for both cases explicitly. let targetContentWidth = Math.max(targetWidth, targetChildrenWidth); @@ -148,7 +148,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b return { isOverflowing, targetContentWidth, totalAvailWidth }; } -@@ -6516,7 +6516,7 @@ class OverflowableToolbar { +@@ -6591,7 +6591,7 @@ class OverflowableToolbar { } } if (!inserted) { @@ -157,7 +157,7 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..410aabf3a58d8d8df68098cbfb45729b } child.removeAttribute("cui-anchorid"); child.removeAttribute("overflowedItem"); -@@ -6678,6 +6678,9 @@ class OverflowableToolbar { +@@ -6753,6 +6753,9 @@ class OverflowableToolbar { * @param {MouseEvent} aEvent the click event. */ #onClickDefaultListButton(aEvent) { diff --git a/src/browser/components/places/content/editBookmarkPanel-inc-xhtml.patch b/src/browser/components/places/content/editBookmarkPanel-inc-xhtml.patch index fd1ec981e..87cd3f11f 100644 --- a/src/browser/components/places/content/editBookmarkPanel-inc-xhtml.patch +++ b/src/browser/components/places/content/editBookmarkPanel-inc-xhtml.patch @@ -1,58 +1,50 @@ diff --git a/browser/components/places/content/editBookmarkPanel.inc.xhtml b/browser/components/places/content/editBookmarkPanel.inc.xhtml -index 3ec3f094831c2143a818b43d1761a571f0ffa63d..98704f399089f2a33776c6ae9565b8ff9b8ddd34 100644 +index 40366677b60123c66bf0739d1b2374b423d3061c..3e722dce6b21ab62535369f20afe5f0acd43838f 100644 --- a/browser/components/places/content/editBookmarkPanel.inc.xhtml +++ b/browser/components/places/content/editBookmarkPanel.inc.xhtml -@@ -5,7 +5,7 @@ -
-