mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-11 23:55:32 +00:00
* chore: Sync upstream to `Firefox 147.0` * chore: Continued migration, b=no-bug, c=tests * chore: Finish migration without testing, b=no-bug, c=scripts, tabs, media, common, split-view * feat: Finish migration, b=no-bug, c=common, compact-mode, split-view, workspaces * feat: Finish basic migration, b=no-bug, c=kbs, common, folders * feat: Update surfer, b=no-bug, c=scripts
26 lines
1.1 KiB
C++
26 lines
1.1 KiB
C++
diff --git a/browser/modules/BrowserWindowTracker.sys.mjs b/browser/modules/BrowserWindowTracker.sys.mjs
|
|
index 0cd9e9630fff20d71dc1dd7367ae6af4f7a53f71..7212c5f4745f3c93c1ede932af1b0e85580aa679 100644
|
|
--- a/browser/modules/BrowserWindowTracker.sys.mjs
|
|
+++ b/browser/modules/BrowserWindowTracker.sys.mjs
|
|
@@ -326,6 +326,7 @@ export const BrowserWindowTracker = {
|
|
args = null,
|
|
remote = undefined,
|
|
fission = undefined,
|
|
+ zenSyncedWindow = true,
|
|
} = {}) {
|
|
let windowFeatures = "chrome,dialog=no";
|
|
if (all) {
|
|
@@ -382,6 +383,12 @@ export const BrowserWindowTracker = {
|
|
windowFeatures,
|
|
args
|
|
);
|
|
+ win._zenStartupSyncFlag = Services.prefs.getBoolPref("zen.window-sync.prefer-unsynced-windows")
|
|
+ ? (zenSyncedWindow ? 'unsynced' : 'synced')
|
|
+ : (zenSyncedWindow ? 'synced' : 'unsynced');
|
|
+ if (win._zenStartupSyncFlag === 'unsynced' && openerWindow) {
|
|
+ win._zenStartupUnsyncedUserContextId = openerWindow.gZenWorkspaces.getCurrentSpaceContainerId();
|
|
+ }
|
|
this.registerOpeningWindow(win, isPrivate);
|
|
|
|
win.addEventListener(
|