Ignore already cleared redirection table (#605)
This commit is contained in:
parent
97a06e85db
commit
bf576cfb75
@ -4138,20 +4138,16 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
aTab._clearRedirectbTabRelationsTimer = this.window.setTimeout(function(aSelf) {
|
aTab._clearRedirectbTabRelationsTimer = this.window.setTimeout(function(aSelf) {
|
||||||
aSelf.clearRedirectbTabRelations(aTab);
|
aSelf.clearRedirectbTabRelations(aTab);
|
||||||
delete aTab._clearRedirectbTabRelationsTimer;
|
delete aTab._clearRedirectbTabRelationsTimer;
|
||||||
}, 1500, this);
|
}, 1200, this);
|
||||||
},
|
},
|
||||||
clearRedirectbTabRelations : function TSTBrowser_clearRedirectbTabRelations(aTab)
|
clearRedirectbTabRelations : function TSTBrowser_clearRedirectbTabRelations(aTab)
|
||||||
{
|
{
|
||||||
if (!aTab || !aTab.parentNode)
|
if (!aTab || !aTab.parentNode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var redirectingIds = Object.keys(this._redirectionTable).map(function(aId) {
|
var validIds = this.getAllTabs(this.mTabBrowser).map(function(aTab) {
|
||||||
return this._redirectionTable[aId];
|
|
||||||
}, this);
|
|
||||||
var existingIds = this.getAllTabs(this.mTabBrowser).map(function(aTab) {
|
|
||||||
return this.getTabValue(aTab, this.kID);
|
return this.getTabValue(aTab, this.kID);
|
||||||
}, this);
|
}, this);
|
||||||
var validIds = redirectingIds.concat(existingIds);
|
|
||||||
validIds = validIds.filter(function(aId) {
|
validIds = validIds.filter(function(aId) {
|
||||||
return !!aId;
|
return !!aId;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user