From 499c43768f27e2332c6c69c47925d281820c764e Mon Sep 17 00:00:00 2001 From: teramako Date: Tue, 14 Dec 2010 20:42:02 +0900 Subject: update removeTab delegate selecting a tab to Firefox after the tab removed when 'd' --- panorama.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'panorama.js') diff --git a/panorama.js b/panorama.js index c2b4095..f9649da 100644 --- a/panorama.js +++ b/panorama.js @@ -391,6 +391,13 @@ function removeTab (tab, count, focusLeftTab, quitOnLastTab) { return; } + + // delegate selecting a tab to Firefox after the tab removed + if (count === 1 && !focusLeftTab && tab.owner) { + remove(tab); + return; + } + let vTabs = gb.visibleTabs; let index = vTabs.indexOf(tab); liberator.assert(index >= 0, "No such tab(s) in the current tabs"); -- cgit v1.2.3