Don't open startup home pages as a tree #1063

This commit is contained in:
YUKI Hiroshi 2016-02-18 20:50:14 +09:00
parent d7c74933b5
commit 7bfb22b3e6
2 changed files with 4 additions and 0 deletions

View File

@ -501,10 +501,12 @@ var TreeStyleTabWindowHelper = {
b.__treestyletab__loadTabs = b.loadTabs;
b.loadTabs = function(aURIs, aLoadInBackground, aReplace, ...aArgs) {
if (!TreeStyleTabWindowHelper.runningDelayedStartup) { // don't open home tabs as a tree!
if (aReplace)
this.treeStyleTab.readyToOpenChildTab(this.selectedTab, true);
else if (typeof this.treeStyleTab.nextOpenedTabToBeParent == 'undefined')
this.treeStyleTab.nextOpenedTabToBeParent = true;
}
var result;
var tabs = [];

View File

@ -106,6 +106,8 @@ function TreeStyleTabBrowser(aWindowService, aTabBrowser)
this.subTreeMovingCount = 0;
this.subTreeChildrenMovingCount = 0;
this._treeViewEnabled = true;
this.nextOpenedTabToBeParent = false;
}
TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {