Index: chrome/content/ui/sidebar.js |
=================================================================== |
--- a/chrome/content/ui/sidebar.js |
+++ b/chrome/content/ui/sidebar.js |
@@ -1004,17 +1004,17 @@ var treeView = { |
// Custom properties and methods |
// |
boxObject: null, |
atoms: null, |
filter: "", |
data: null, |
allData: [], |
- dataMap: {__proto__: null}, |
+ dataMap: Object.create(null), |
sortColumn: null, |
sortProc: null, |
resortTimeout: null, |
itemsDummy: null, |
whitelistDummy: null, |
itemsDummyTooltip: null, |
whitelistDummyTooltip: null, |
itemToSelect: null, |
@@ -1033,17 +1033,17 @@ var treeView = { |
docDomain: createSortWithFallback(compareDocDomain, sortByAddress, false), |
docDomainDesc: createSortWithFallback(compareDocDomain, sortByAddress, true), |
filterSource: createSortWithFallback(compareFilterSource, sortByAddress, false), |
filterSourceDesc: createSortWithFallback(compareFilterSource, sortByAddress, true) |
}, |
clearData: function(data) { |
var oldRows = this.rowCount; |
this.allData = []; |
- this.dataMap = {__proto__: null}; |
+ this.dataMap = Object.create(null); |
this.refilter(); |
this.boxObject.rowCountChanged(0, -oldRows); |
this.boxObject.rowCountChanged(0, this.rowCount); |
}, |
addItem: function(/**Node*/ node, /**RequestEntry*/ item, /**Boolean*/ scanComplete) |
{ |