feat: Correctly initialize new restored windows, p=#11821

* feat: Correctly initialize new restored windows, b=no-bug, c=no-component

* chore: Experiment with different build flags for optimization and build time, b=no-bug, c=common, configs

* chore: Format, b=no-bug, c=no-component
This commit is contained in:
mr. m
2026-01-06 12:38:22 +01:00
committed by GitHub
parent 281ec6693d
commit 481163a756
3 changed files with 3 additions and 13 deletions

View File

@@ -79,12 +79,6 @@ if test "$ZEN_RELEASE"; then
MOZILLA_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export OPT_LEVEL="3"
ac_add_options OPT_LEVEL="3"
export RUSTC_OPT_LEVEL="3"
ac_add_options RUSTC_OPT_LEVEL="3"
mk_add_options AUTOCLOBBER=1
export AUTOCLOBBER=1

View File

@@ -28,14 +28,14 @@ if test "$SURFER_COMPAT" = "x86_64"; then
if test "$ZEN_RELEASE"; then
ac_add_options --enable-wasm-avx
ac_add_options --enable-optimize="-march=nehalem -mtune=haswell -O3 -w"
ac_add_options --enable-optimize="-march=nehalem -mtune=haswell -O2 -w"
fi
else
ac_add_options --enable-clang-plugin
ac_add_options --target=aarch64-apple-darwin
if test "$ZEN_RELEASE"; then
ac_add_options --enable-optimize="-O3 -mcpu=apple-m1"
ac_add_options --enable-optimize="-O2 -mcpu=apple-m1"
# As of Clang 13, the default is -mcpu=apple-m1 when using a aarch64-apple-macos target,
# but we're using apple64-apple-darwin, which defaults to -mcpu=apple-a7, which disables

View File

@@ -96,11 +96,7 @@ class nsZenWindowSync {
#browserWindows = {
*[Symbol.iterator]() {
for (let window of lazy.BrowserWindowTracker.orderedWindows) {
if (
window.__SSi &&
!window.closed &&
!window.gZenWorkspaces?.privateWindowOrDisabled
) {
if (window.__SSi && !window.closed && !window.gZenWorkspaces?.privateWindowOrDisabled) {
yield window;
}
}