From 7b41779a0b6f233b5f89b4bd71dadd5754017f20 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Fri, 9 Dec 2011 11:12:27 +0900 Subject: [PATCH] failed to restore subtree-collapsed state for restored tabs (by undo close tab command) --- modules/browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index 332645c3..3d46bedb 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -2634,8 +2634,10 @@ TreeStyleTabBrowser.prototype = { this.stopRendering(); var backupAttributes = {}; - if (this.hasChildTabs(tab)) + if (this.hasChildTabs(tab)) { backupAttributes[this.kCHILDREN] = this.getTabValue(tab, this.kCHILDREN); + backupAttributes[this.kSUBTREE_COLLAPSED] = this.getTabValue(tab, this.kSUBTREE_COLLAPSED); + } var subtreeCollapsed = this.isSubtreeCollapsed(tab); if (