From 43c4fc9fcda61cf91066b981dff360ee8d005c4c Mon Sep 17 00:00:00 2001 From: "hyatt@netscape.com" Date: Tue, 21 Aug 2007 21:58:52 -0700 Subject: [PATCH] Reverting tab close behavior. --- browser/base/content/tabbrowser.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 06cd3d6635d..bfd0dbf0853 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -774,12 +774,15 @@ // Now select the new tab before nuking the old one. var currentIndex = this.mPanelContainer.selectedIndex; + // Now select the new tab before nuking the old one. + var currentIndex = this.mPanelContainer.selectedIndex; + var newIndex = -1; if (currentIndex > index) newIndex = currentIndex-1; else if (currentIndex < index) newIndex = currentIndex; - else if (index > 0) + else if (index == l - 1) newIndex = index-1; else newIndex = index;