Permalink
Browse files

Bug 608589 - Avoid false positives when complaining about tabs that f…

…ailed to close. r=gavin a=b
  • Loading branch information...
1 parent ee43bde commit 37ae7131333b65418a84d44bb4d15db6caa8cde7 Dão Gottwald committed Jan 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 browser/base/content/tabbrowser.xml
@@ -1459,7 +1459,8 @@
aTab.removeAttribute("fadein");
setTimeout(function (tab, tabbrowser) {
- if (tab.parentNode) {
+ if (tab.parentNode &&
+ window.getComputedStyle(tab).maxWidth == "0.1px") {
NS_ASSERT(false, "Giving up waiting for the tab closing animation to finish (bug 608589)");
tabbrowser._endRemoveTab(tab);
}

0 comments on commit 37ae713

Please sign in to comment.