From ad85e46093b44b950a6b94a48c075bd2384867d9 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Thu, 3 Feb 2011 14:36:01 +0900 Subject: [PATCH] ignore about:sessionrestore if it is just the restored tab. --- content/treestyletab/treestyletabbrowser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 4b3cfe29..b811a064 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2879,7 +2879,8 @@ TreeStyleTabBrowser.prototype = { { this.restoreStructure(aEvent.originalTarget); - if (this.mTabBrowser.currentURI.spec == 'about:sessionrestore') { + if (!aEvent.originalTarget.selected && + this.mTabBrowser.currentURI.spec == 'about:sessionrestore') { let frame = this.mTabBrowser.contentWindow; frame = frame.wrappedJSObject || frame; let tree = frame.document.getElementById('tabList');