From 7bef9607cf2330e8863b3ab62aa81729551df975 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 13 Oct 2008 22:16:03 +0000 Subject: [PATCH] Forcably select the tab to the right on "d" for extensions that change the behavior. --- content/tabs.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/tabs.js b/content/tabs.js index 5d5c97d1..9d03259f 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -792,10 +792,10 @@ function Tabs() //{{{ return; } - var index = this.index(tab); + let index = this.index(tab); if (focusLeftTab) { - var lastRemovedTab = 0; + let lastRemovedTab = 0; for (let i = index; i > index - count && i >= 0; i--) { removeOrBlankTab(this.getTab(i)); @@ -805,12 +805,13 @@ function Tabs() //{{{ } else { - var i = index + count - 1; + let i = index + count - 1; if (i >= this.count) i = this.count - 1; for (; i >= index; i--) removeOrBlankTab(this.getTab(i)); + getBrowser().mTabContainer.selectedIndex = index; } },