[Pale-Moon] No issue - Silence tab closing animation assert if the tabbrowser is not visible

This commit is contained in:
FranklinDM 2022-12-04 12:14:18 +08:00 committed by roytam1
commit 4a9e6100ec

View file

@ -1972,7 +1972,9 @@
setTimeout(function (tab, tabbrowser) {
if (tab.parentNode &&
window.getComputedStyle(tab).maxWidth == "0.1px") {
NS_ASSERT(false, "Giving up waiting for the tab closing animation to finish (bug 608589)");
if (this.visible) {
NS_ASSERT(false, "Giving up waiting for the tab closing animation to finish (bug 608589)");
}
tabbrowser._endRemoveTab(tab);
}
}, 3000, aTab, this);