Index: chrome/content/common.js |
diff --git a/chrome/content/common.js b/chrome/content/common.js |
index 7bc1d4772f99660690927519368b2ff758450749..022aec6cce837ee303790cf954c4b6f3c1c1324e 100644 |
--- a/chrome/content/common.js |
+++ b/chrome/content/common.js |
@@ -78,9 +78,9 @@ function prepareFilterComponents(keepListeners) |
}; |
FilterStorage.subscriptions = []; |
- FilterStorage.knownSubscriptions = {__proto__: null}; |
- Subscription.knownSubscriptions = {__proto__: null}; |
- Filter.knownFilters = {__proto__: null}; |
+ FilterStorage.knownSubscriptions = Object.create(null); |
+ Subscription.knownSubscriptions = Object.create(null); |
+ Filter.knownFilters = Object.create(null); |
if (!keepListeners) |
{ |
FilterNotifierGlobal.listeners = []; |
@@ -124,7 +124,7 @@ function scheduleReinit() |
function preparePrefs() |
{ |
- this._pbackup = {__proto__: null}; |
+ this._pbackup = Object.create(null); |
for (let pref in Prefs) |
{ |
if (Prefs.__lookupSetter__(pref)) |
@@ -162,7 +162,7 @@ function setupVirtualTime(processTimers) |
{ |
processTimers(function wrapTimer(timer) |
{ |
- let wrapper = {__proto__: timer}; |
+ let wrapper = Object.create(timer); |
let callback = timer.callback; |
wrapper.handler = function() callback.notify(wrapper); |
wrapper.nextExecution = currentTime + timer.delay; |