Skip to content

Commit

Permalink
Update Linux release build workflow and improve package installation;…
Browse files Browse the repository at this point in the history
… add checks for window.docShell in ZenUIManager
  • Loading branch information
mauro-balades committed Jan 6, 2025
1 parent 0333413 commit 6c4af27
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build-linux:
permissions:
contents: write
runs-on: ${{ inputs.release-branch == 'release' && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-latest' }}
runs-on: ${{ matrix.arch == 'x86_64' && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/src/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
set -xe

if command -v apt-get &> /dev/null; then
sudo apt-get update
sudo apt-get install -y xvfb
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade
sudo apt-get install -y xvfb libnvidia-egl-wayland1 mesa-utils libgl1-mesa-dri
fi

ulimit -n 4096
Expand Down
4 changes: 3 additions & 1 deletion src/browser/base/content/ZenUIManager.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ var gZenVerticalTabsManager = {
try {
this._updateMaxWidth();

window.docShell.treeOwner.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIAppWindow).rollupAllPopups();
if (window.docShell) {
window.docShell.treeOwner.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIAppWindow).rollupAllPopups();
}

const topButtons = document.getElementById('zen-sidebar-top-buttons');
const isCompactMode = this._prefsCompactMode && !forCustomizableMode;
Expand Down
5 changes: 3 additions & 2 deletions src/testing/profiles/profileserver/user-js.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
diff --git a/testing/profiles/profileserver/user.js b/testing/profiles/profileserver/user.js
index 19ff7d474f6d22d2d386764e2e6942ce6a324470..62fd56e53bc1cb7b688395badc97820d97a7c767 100644
index 19ff7d474f6d22d2d386764e2e6942ce6a324470..40d1906bdebd08510014fd6124be17052248e748 100644
--- a/testing/profiles/profileserver/user.js
+++ b/testing/profiles/profileserver/user.js
@@ -8,3 +8,10 @@
@@ -8,3 +8,11 @@
user_pref("dom.timeout.enable_budget_timer_throttling", false);
// Turn off update
user_pref("app.update.disabledForTesting", true);
+
+// zen:
+// Disable some of zen's features to better match the default Firefox experience
+user_pref("zen.workspaces.enabled", false);
+user_pref("zen.welcome-screen.enabled", false);
+user_pref("zen.tab-unloader.enabled", false);
+user_pref("zen.watermark.enabled", false);
Expand Down

0 comments on commit 6c4af27

Please sign in to comment.