gh-13620: Fixed unresponsive tabs when opening external links (gh-13628)

This commit is contained in:
mr. m
2026-05-09 12:17:13 +02:00
committed by GitHub
parent 639bf29de3
commit da9838e478

View File

@@ -816,14 +816,12 @@ class nsZenWorkspaces {
let removedEmptyTab = false;
let initialTabWasEmpty = false;
if (
this._initialTab &&
!(this._initialTab._shouldRemove && this._initialTab._veryPossiblyEmpty)
) {
initialTabWasEmpty = !!this._initialTab._veryPossiblyEmpty;
gBrowser.selectedTab = this._initialTab;
this.moveTabToWorkspace(this._initialTab, this.activeWorkspace);
gBrowser.moveTabTo(this._initialTab, {
if (this._shouldOverrideTabs) {
let initialTab = this._initialTab || gBrowser.selectedTab;
initialTabWasEmpty = !!initialTab._veryPossiblyEmpty;
gBrowser.selectedTab = initialTab;
this.moveTabToWorkspace(initialTab, this.activeWorkspace);
gBrowser.moveTabTo(initialTab, {
forceUngrouped: true,
tabIndex: 0,
});