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:
parent
08aa9a3459
commit
d512dbbfa4
@ -3326,11 +3326,11 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
var closeSetId = !structureRestored && this._getCloseSetId(aTab, mayBeDuplicated);
|
var closeSetId = !structureRestored && this._getCloseSetId(aTab, mayBeDuplicated);
|
||||||
|
|
||||||
var currentId = aTab.getAttribute(this.kID);
|
var currentId = aTab.getAttribute(this.kID);
|
||||||
if (id != currentId) {
|
if (id != currentId && currentId)
|
||||||
delete this.tabsHash[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) {
|
if (structureRestored) {
|
||||||
this._fixMissingAttributesFromSessionData(aTab);
|
this._fixMissingAttributesFromSessionData(aTab);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user