Skip to content

Commit

Permalink
Update configuration and UI behavior for Zen Browser
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
mauro-balades committed Dec 24, 2024
1 parent dd88086 commit a1debe4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 0 additions & 4 deletions configs/common/mozconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/browser/app/profile/zen-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions src/browser/base/content/ZenUIManager.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 6 additions & 5 deletions src/browser/components/customizableui/content/panelUI-js.patch
Original file line number Diff line number Diff line change
@@ -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();
}
4 changes: 2 additions & 2 deletions surfer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -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"
}
Expand Down

0 comments on commit a1debe4

Please sign in to comment.