gh-10649: Avoid making unnecessary sidebar duplications (gh-13299)

This commit is contained in:
mr. m
2026-04-17 14:33:32 +02:00
committed by GitHub
parent d3a601bd77
commit a164e226dc

View File

@@ -712,10 +712,7 @@ export class nsZenSessionManager {
// We only want to collect the sidebar data once from
// a single window, as all windows share the same
// sidebar data.
let sidebarData = this.#sidebar;
if (!sidebarData) {
sidebarData = {};
}
let sidebarData = {};
sidebarData.lastCollected = Date.now();
this.#collectTabsData(sidebarData, aStateWindows);