From 7bfb22b3e680139aa9cac2164f00b2bbe47e44a7 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 18 Feb 2016 20:50:14 +0900 Subject: [PATCH] Don't open startup home pages as a tree #1063 --- content/treestyletab/windowHelper.js | 2 ++ modules/browser.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index d8bf4667..2f7a691c 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -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 = []; diff --git a/modules/browser.js b/modules/browser.js index 2881e39a..e148a998 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -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, {