Fix issue with active tab not being set correctly in ZenViewSplitter

This commit is contained in:
Mauro Balades
2024-07-31 13:33:14 +02:00
parent 51bd006bd1
commit b17fb12715
3 changed files with 11 additions and 1 deletions

View File

@@ -165,6 +165,8 @@ var gZenViewSplitter = {
this.tabBrowserPanel.style.gridTemplateAreas = "";
Services.prefs.setBoolPref("zen.splitView.working", false);
modifyDecks(this._data[this.currentView].tabs, false);
// console.log("Setting the active tab to be active", gBrowser.selectedTab);
gBrowser.selectedTab.linkedBrowser.docShellIsActive = true; // Make sure the active tab is active
this.currentView = -1;
if (!splitData) {
return;

View File

@@ -272,7 +272,11 @@ var ZenWorkspaces = {
_deleteAllTabsInWorkspace(workspaceID) {
for (let tab of gBrowser.tabs) {
if (tab.getAttribute("zen-workspace-id") === workspaceID) {
gBrowser.removeTab(tab);
gBrowser.removeTab(tab, {
animate: true,
skipSessionStore: true,
closeWindowWithLastTab: false,
});
}
}
},

View File

@@ -878,5 +878,9 @@ panelmultiview {
height: 30px;
margin-right: 10px;
}
.urlbar-go-button {
margin: auto 0;
}
}
}