failed to create tree for the tab initially selected in a background group ( some tabs restored in background group cannot be found by getTabById() )

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-01-04 00:13:35 +09:00
parent 08aa9a3459
commit d512dbbfa4

View File

@ -3326,11 +3326,11 @@ TreeStyleTabBrowser.prototype = {
var closeSetId = !structureRestored && this._getCloseSetId(aTab, mayBeDuplicated);
var currentId = aTab.getAttribute(this.kID);
if (id != currentId) {
if (id != currentId && currentId)
delete this.tabsHash[currentId];
this.setTabValue(aTab, this.kID, id);
this.tabsHash[id] = aTab;
}
this.setTabValue(aTab, this.kID, id);
this.tabsHash[id] = aTab;
if (structureRestored) {
this._fixMissingAttributesFromSessionData(aTab);