no-bug: Only animate tabs from other folders when adding them (gh-12868)

This commit is contained in:
mr. m
2026-03-21 13:55:34 +01:00
committed by GitHub
parent c4d736afbc
commit cd0713a7ee

View File

@@ -287,14 +287,20 @@ export class nsZenFolder extends MozTabbrowserTabGroup {
}
addTabs(tabs) {
let tabsFromOutside = [];
for (let tab of tabs) {
if (tab.group !== this) {
tabsFromOutside.push(tab);
}
}
super.addTabs(tabs);
if (
this.collapsed &&
!gZenFolders._sessionRestoring &&
this.isLiveFolder &&
tabs.length
tabsFromOutside.length
) {
tabs.forEach(tab => {
tabsFromOutside.forEach(tab => {
tab.setAttribute("folder-active", "true");
});
gZenFolders.animateCollapse(this);