Respect "load in background" option for gBrowser.loadTabs() correctly #1195

This commit is contained in:
Piro / YUKI Hiroshi 2016-09-15 00:26:32 +09:00
parent 149cc54bad
commit bbeb869799

View File

@ -477,7 +477,7 @@ var TreeStyleTabWindowHelper = {
firstTabAdded = tabs[0];
}
finally {
if (!aReplace && firstTabAdded) {
if (!aLoadInBackground && !aReplace && firstTabAdded) {
this.selectedTab = aURIs[0].indexOf('about:treestyletab-group') == 0 ?
TreeStyleTabService.getNextTab(firstTabAdded) :
firstTabAdded;