From d0c9de6a1111cccfc8779891e7951d36ee19a6d0 Mon Sep 17 00:00:00 2001 From: D?o Gottwald Date: Fri, 14 Jan 2011 11:47:38 +0100 Subject: [PATCH] Bug 608589 - Avoid false positives when complaining about tabs that failed to close. r=gavin a=b --- browser/base/content/tabbrowser.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 5108827f51..e995702841 100644 --- a/browser/base/content/tabbrowser.xml +++ b/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); } -- 2.11.4.GIT