зеркало из https://github.com/mozilla/gecko-dev.git
Bug 608589 - Report error and manually remove tab when closing animation doesn't finish. r=gavin a=b
This commit is contained in:
Родитель
c55163af9c
Коммит
fc6e0beb41
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче