mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-22 11:26:41 +00:00
feat: Remove unnecesary browser flush calls, b=bug #12152, c=no-component
This commit is contained in:
@@ -245,8 +245,6 @@ class nsZenWindowSync {
|
||||
for (let tab of gZenWorkspaces.allStoredTabs) {
|
||||
if (!tab.id) {
|
||||
tab.id = this.#newTabSyncId;
|
||||
// Don't call with await here to avoid blocking the loop.
|
||||
this.#maybeFlushTabState(tab);
|
||||
}
|
||||
if (tab.pinned && !tab._zenPinnedInitialState) {
|
||||
await this.setPinnedTabState(tab);
|
||||
@@ -474,9 +472,6 @@ class nsZenWindowSync {
|
||||
this.#maybeSyncAttributeChange(aOriginalItem, aTargetItem, "zen-workspace-id");
|
||||
this.#syncItemPosition(aOriginalItem, aTargetItem, aWindow);
|
||||
}
|
||||
if (gBrowser.isTab(aTargetItem)) {
|
||||
this.#maybeFlushTabState(aTargetItem);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1151,7 +1146,6 @@ class nsZenWindowSync {
|
||||
if (duringPinning && tab?.splitView) {
|
||||
this.on_ZenSplitViewTabsSplit({ target: tab.group });
|
||||
}
|
||||
this.#maybeFlushTabState(tab);
|
||||
}
|
||||
|
||||
on_ZenTabIconChanged(aEvent) {
|
||||
|
||||
Reference in New Issue
Block a user