File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
browser/components/tabbrowser/content Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js
2
- index d5aa64842a35c6697263c63fd3a0571b64b01344..031b384c848fd391f84ed1e6d4f991f3287e37a4 100644
2
+ index d5aa64842a35c6697263c63fd3a0571b64b01344..48d8465f1a4d593ec6d4bff2bd7a83f44116506b 100644
3
3
--- a/browser/components/tabbrowser/content/tabbrowser.js
4
4
+++ b/browser/components/tabbrowser/content/tabbrowser.js
5
5
@@ -413,11 +413,41 @@
@@ -357,7 +357,7 @@ index d5aa64842a35c6697263c63fd3a0571b64b01344..031b384c848fd391f84ed1e6d4f991f3
357
357
// to remove the old selected tab.
358
358
if (tabToSelect) {
359
359
let leftoverTab = this.selectedTab;
360
- + if (this._hasAlreadyInitializedZenSessionStore) {
360
+ + if (this._hasAlreadyInitializedZenSessionStore || !gZenWorkspaces.workspaceEnabled ) {
361
361
this.selectedTab = tabToSelect;
362
362
this.removeTab(leftoverTab);
363
363
+ } else {
Original file line number Diff line number Diff line change @@ -913,7 +913,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
913
913
}
914
914
915
915
async selectStartPage ( ) {
916
- if ( gZenUIManager . testingEnabled || ! this . workspaceEnabled ) {
916
+ if ( ! this . workspaceEnabled ) {
917
917
return ;
918
918
}
919
919
await this . promiseInitialized ;
@@ -1015,7 +1015,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
1015
1015
}
1016
1016
1017
1017
handleInitialTab ( tab , isEmpty ) {
1018
- if ( gZenUIManager . testingEnabled ) {
1018
+ if ( gZenUIManager . testingEnabled || ! this . workspaceEnabled ) {
1019
1019
return ;
1020
1020
}
1021
1021
// note: We cant access `gZenVerticalTabsManager._canReplaceNewTab` this early
You can’t perform that action at this time.
0 commit comments