Bug 608589 - Avoid false positives when complaining about tabs that failed to close. r=gavin a=b THUNDERBIRD_3_3a2_BUILD1 THUNDERBIRD_3_3a2_RELEASE
authorDão Gottwald <dao@mozilla.com>
Fri, 14 Jan 2011 11:47:38 +0100
changeset 60492 f24f049857a5
parent 60491 9f412256da4c
child 60493 e632a03be51f
child 60614 18026f98fef1
push idunknown
push userunknown
push dateunknown
reviewersgavin, b
bugs608589
milestone2.0b10pre
Bug 608589 - Avoid false positives when complaining about tabs that failed to close. r=gavin a=b
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -1454,17 +1454,18 @@
               this._endRemoveTab(aTab);
               return;
             }
 
             this._blurTab(aTab);
             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);
               }
             }, 3000, aTab, this);
           ]]>
         </body>
       </method>