From a6e692dd8438a8ad48309359de9cd496ed656fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Mon, 16 Aug 2010 16:43:04 -0400 Subject: [PATCH] Bug 586666 - When new tab is opened, close button of inactive tab disappears; r=gavin.sharp approval2.0=gavin.sharp a=blocking-beta5+ --- browser/base/content/tabbrowser.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 72ce1abded2..3dabb9f20de 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -2618,8 +2618,7 @@ if (this.childNodes.length == 1 && this._closeWindowWithLastTab) this.setAttribute("closebuttons", "noclose"); else { - // Grab the last tab for size comparison - let tab = this.tabbrowser.visibleTabs.pop(); + let tab = this.tabbrowser.visibleTabs[this.tabbrowser._numPinnedTabs]; if (tab && tab.getBoundingClientRect().width > this.mTabClipWidth) this.setAttribute("closebuttons", "alltabs"); else