зеркало из https://github.com/mozilla/pjs.git
bug 195212 - Reopening multiple tabs when clicking Home and multiple homepages selected, make multiple pages always open together r=mano
This commit is contained in:
Родитель
2971c90265
Коммит
39b152e724
|
@ -1065,8 +1065,13 @@
|
|||
else
|
||||
firstTabAdded = gBrowser.addTab(aURIs[0], null, null, null, owner, false);
|
||||
|
||||
for (var i = 1; i < aURIs.length; ++i)
|
||||
gBrowser.addTab(aURIs[i]);
|
||||
var tabNum = this.mTabContainer.selectedIndex;
|
||||
for (var i = 1; i < aURIs.length; ++i) {
|
||||
var tab = gBrowser.addTab(aURIs[i]);
|
||||
if (aReplace)
|
||||
this.moveTabTo(tab, ++tabNum);
|
||||
}
|
||||
|
||||
if (!aLoadInBackground) {
|
||||
if (firstTabAdded) {
|
||||
// .selectedTab setter focuses the content area
|
||||
|
|
Загрузка…
Ссылка в новой задаче