diff --git a/content/treestyletab/content-utils.js b/content/treestyletab/content-utils.js index 1ac35952..bb89d5cc 100644 --- a/content/treestyletab/content-utils.js +++ b/content/treestyletab/content-utils.js @@ -87,12 +87,12 @@ ]), collectLocations : function(aFrame, aLocations) { - aLocations = aLocations || []; - aLocations.push(this.getHashString(aFrame.location.href)); + aLocations = aLocations || {}; + aLocations[this.getHashString(aFrame.location.href)] = true; Array.forEach(aFrame.frames, function(aSubFrame) { this.collectLocations(aSubFrame, aLocations); }, this); - return aLocations; + return Object.keys(aLocations); }, getHashString : function(aString) { let hasher = Cc['@mozilla.org/security/hash;1']