no-bug: Fixed opening new private windows removing initial tabs (gh-13687)

This commit is contained in:
mr. m
2026-05-13 23:10:54 +02:00
committed by GitHub
parent 3dd0ec9b65
commit a82e145b1d

View File

@@ -811,6 +811,7 @@ class nsZenWorkspaces {
delete this._tabToSelect;
delete this._tabToRemoveForEmpty;
delete this._shouldOverrideTabs;
delete this._initialTab;
resolveSelectPromise();
};
@@ -874,15 +875,6 @@ class nsZenWorkspaces {
}
await selectPromise;
if (this._initialTab) {
this.selectEmptyTab();
this._removedByStartupPage = true;
gBrowser.removeTab(this._initialTab, {
skipSessionStore: true,
});
delete this._initialTab;
}
const openOnStartup = Services.prefs.getBoolPref(
"zen.urlbar.open-on-startup",
true