From a1debe45cf27ce0b32996e1196613fad82921d98 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Tue, 24 Dec 2024 12:29:56 +0100 Subject: [PATCH] Update configuration and UI behavior for Zen Browser - Remove unnecessary comments from mozconfig - Disable sign-on remembering in preferences - Ensure popups are rolled up when updating vertical tabs - Adjust popup hidden event listener to use capture option - Bump version numbers in surfer.json for releases --- configs/common/mozconfig | 4 ---- src/browser/app/profile/zen-browser.js | 1 + src/browser/base/content/ZenUIManager.mjs | 6 ++++++ .../customizableui/content/panelUI-js.patch | 11 ++++++----- surfer.json | 4 ++-- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/configs/common/mozconfig b/configs/common/mozconfig index cbe57213b..131f88fe4 100644 --- a/configs/common/mozconfig +++ b/configs/common/mozconfig @@ -98,7 +98,3 @@ mk_add_options MOZ_TELEMETRY_REPORTING= # Allow loading unsigned extensions export MOZ_REQUIRE_SIGNING= mk_add_options MOZ_REQUIRE_SIGNING= - -# Sorry ptr, I didnt mean to! -# Edit: ok, ill remove it, goodbye top #1 on fastest browsers benchmark :[ -# ac_add_options --without-wasm-sandboxed-libraries diff --git a/src/browser/app/profile/zen-browser.js b/src/browser/app/profile/zen-browser.js index 56190ea80..797257ee9 100644 --- a/src/browser/app/profile/zen-browser.js +++ b/src/browser/app/profile/zen-browser.js @@ -379,6 +379,7 @@ pref("browser.formfill.enable", false); pref("security.insecure_connection_text.enabled", true); pref("security.insecure_connection_text.pbmode.enabled", true); pref("network.IDN_show_punycode", true); +pref("signon.rememberSignons", false); // Telemetry pref("datareporting.policy.dataSubmissionEnabled", false, locked); diff --git a/src/browser/base/content/ZenUIManager.mjs b/src/browser/base/content/ZenUIManager.mjs index 594d4778f..a05527d6b 100644 --- a/src/browser/base/content/ZenUIManager.mjs +++ b/src/browser/base/content/ZenUIManager.mjs @@ -280,6 +280,12 @@ var gZenVerticalTabsManager = { this._isUpdating = true; try { this._updateMaxWidth(); + + window.docShell.treeOwner + .QueryInterface(Ci.nsIInterfaceRequestor) + .getInterface(Ci.nsIAppWindow) + .rollupAllPopups(); + const topButtons = document.getElementById('zen-sidebar-top-buttons'); const isCompactMode = this._prefsCompactMode; const isVerticalTabs = this._prefsVerticalTabs || forceMultipleToolbar; diff --git a/src/browser/components/customizableui/content/panelUI-js.patch b/src/browser/components/customizableui/content/panelUI-js.patch index c6ac7028c..f1f1261c8 100644 --- a/src/browser/components/customizableui/content/panelUI-js.patch +++ b/src/browser/components/customizableui/content/panelUI-js.patch @@ -1,13 +1,14 @@ diff --git a/browser/components/customizableui/content/panelUI.js b/browser/components/customizableui/content/panelUI.js -index 1805bad6c58e060533f634ed9e511c05cad3ded1..4eb04f3eb1b9dd1c5d663cca0a7ad903b38c4efd 100644 +index 1805bad6c58e060533f634ed9e511c05cad3ded1..07aca3c94b725af8761f0fa7881926da71502d76 100644 --- a/browser/components/customizableui/content/panelUI.js +++ b/browser/components/customizableui/content/panelUI.js -@@ -545,7 +545,7 @@ const PanelUI = { +@@ -544,8 +544,8 @@ const PanelUI = { + } if (viewShown) { - CustomizableUI.addPanelCloseListeners(tempPanel); -- tempPanel.addEventListener("popuphidden", panelRemover); -+ tempPanel.addEventListener("popuphidden", panelRemover, { capture: true }); +- CustomizableUI.addPanelCloseListeners(tempPanel); + tempPanel.addEventListener("popuphidden", panelRemover); ++ CustomizableUI.addPanelCloseListeners(tempPanel); } else { panelRemover(); } diff --git a/surfer.json b/surfer.json index 077e94773..f2e3416f2 100644 --- a/surfer.json +++ b/surfer.json @@ -18,7 +18,7 @@ "brandShortName": "Zen Browser", "brandFullName": "Zen Browser", "release": { - "displayVersion": "1.0.2-b.4", + "displayVersion": "1.0.2-b.5", "github": { "repo": "zen-browser/desktop" }, @@ -38,7 +38,7 @@ "brandShortName": "Zen Twilight", "brandFullName": "Zen Twilight", "release": { - "displayVersion": "1.0.2-t.5", + "displayVersion": "1.0.2-t.6", "github": { "repo": "zen-browser/desktop" }