ignore about:sessionrestore if it is just the restored tab.

This commit is contained in:
SHIMODA Hiroshi 2011-02-03 14:36:01 +09:00
parent 1333157a92
commit ad85e46093

View File

@ -2879,7 +2879,8 @@ TreeStyleTabBrowser.prototype = {
{ {
this.restoreStructure(aEvent.originalTarget); 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; let frame = this.mTabBrowser.contentWindow;
frame = frame.wrappedJSObject || frame; frame = frame.wrappedJSObject || frame;
let tree = frame.document.getElementById('tabList'); let tree = frame.document.getElementById('tabList');