mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-03 10:34:38 +00:00
fix: Fixed private windows adopting Blank windows styling, b=closes #12211, c=no-component
This commit is contained in:
@@ -15,6 +15,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||
ZenSessionStore: "resource:///modules/zen/ZenSessionManager.sys.mjs",
|
||||
TabStateCache: "resource:///modules/sessionstore/TabStateCache.sys.mjs",
|
||||
setTimeout: "resource://gre/modules/Timer.sys.mjs",
|
||||
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyPreferenceGetter(lazy, "gWindowSyncEnabled", "zen.window-sync.enabled", true);
|
||||
@@ -189,6 +190,10 @@ class nsZenWindowSync {
|
||||
// to avoid confusing the old private window behavior.
|
||||
let forcedSync = !aWindow.gZenWorkspaces?.privateWindowOrDisabled;
|
||||
let hasUnsyncedArg = false;
|
||||
// See issue https://github.com/zen-browser/desktop/issues/12211
|
||||
if (lazy.PrivateBrowsingUtils.isWindowPrivate(aWindow)) {
|
||||
aWindow._zenStartupSyncFlag = "synced";
|
||||
}
|
||||
if (aWindow._zenStartupSyncFlag === "synced") {
|
||||
forcedSync = true;
|
||||
} else if (aWindow._zenStartupSyncFlag === "unsynced") {
|
||||
|
||||
Reference in New Issue
Block a user