refactoring
This commit is contained in:
parent
e3b7f7adf4
commit
476ffb70d5
@ -2300,16 +2300,14 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
var tabs = this.getAllTabsArray(this.mTabBrowser);
|
var tabs = this.getAllTabsArray(this.mTabBrowser);
|
||||||
tabs = tabs.filter(function(aTab) {
|
tabs = tabs.filter(function(aTab) {
|
||||||
if (aTab.__treestyletab__structureRestored) // onWindowStateRestored can be called twice
|
var currentId = aTab.getAttribute(this.kID);
|
||||||
return false;
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!aTab.getAttribute(this.kID) || // tabs opened by externals applications
|
!currentId || // tabs opened by externals applications
|
||||||
!aTab.linkedBrowser.__SS_restoreState
|
!aTab.linkedBrowser.__SS_restoreState ||
|
||||||
|
aTab.__treestyletab__structureRestored
|
||||||
)
|
)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var currentId = aTab.getAttribute(this.kID);
|
|
||||||
if (this.tabsHash[currentId] == aTab)
|
if (this.tabsHash[currentId] == aTab)
|
||||||
delete this.tabsHash[currentId];
|
delete this.tabsHash[currentId];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user