Bug 608589 - Report error and manually remove tab when closing animation doesn't finish. r=gavin a=b

This commit is contained in:
Dão Gottwald 2010-12-23 23:31:03 +01:00
Родитель c55163af9c
Коммит fc6e0beb41
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1455,6 +1455,13 @@
this._blurTab(aTab);
aTab.removeAttribute("fadein");
setTimeout(function (tab, tabbrowser) {
if (tab.parentNode) {
NS_ASSERT(false, "Giving up waiting for the tab closing animation to finish (bug 608589)");
tabbrowser._endRemoveTab(tab);
}
}, 2000, aTab, this);
]]>
</body>
</method>