From b6e4abe8424281ef49925594860bd3af679bd638 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Sat, 13 Jun 2015 00:19:58 +0900 Subject: [PATCH] Update library --- modules/lib/visuallyselectedTabs.jsm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/lib/visuallyselectedTabs.jsm b/modules/lib/visuallyselectedTabs.jsm index 9713f802..c636fc2f 100644 --- a/modules/lib/visuallyselectedTabs.jsm +++ b/modules/lib/visuallyselectedTabs.jsm @@ -46,8 +46,6 @@ function visuallyselectedTabs(aTabBrowser) { aTabBrowser.__visuallyselectedTabsInstalled = true; - var document = aTabBrowser.ownerDocument; - function onTabSelect(aEvent) { var prevTab = aEvent.detail && aEvent.detail.previousTab; if (prevTab) @@ -58,6 +56,10 @@ function visuallyselectedTabs(aTabBrowser) { var tabsContainer = aTabBrowser.tabContainer; tabsContainer.addEventListener('TabSelect', onTabSelect, false); + + setVisuallySelected(aTabBrowser.selectedTab, true); + + var document = aTabBrowser.ownerDocument; document.addEventListener('unload', function onUnload(aEvent) { document.removeEventListener('unload', onUnload, false); tabsContainer.removeEventListener('TabSelect', onTabSelect, false);