mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-22 11:26:41 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user