diff --git a/modules/browser.js b/modules/browser.js index e6723f59..b9e31249 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -3049,6 +3049,9 @@ TreeStyleTabBrowser.prototype = { if (nextFocusedTab && toBeClosedTabs.indexOf(nextFocusedTab) > -1) nextFocusedTab = this.getNextFocusedTab(nextFocusedTab); + if (nextFocusedTab && nextFocusedTab.hasAttribute(this.kREMOVED)) + nextFocusedTab = null; + this._reserveCloseRelatedTabs(toBeClosedTabs); this.detachTab(tab, { dontUpdateIndent : true });