Index: lib/sync.js |
=================================================================== |
--- a/lib/sync.js |
+++ b/lib/sync.js |
@@ -245,17 +245,17 @@ ABPStore.prototype = |
if (record.id != filtersRecordID) |
return; |
this._log.trace("Merging in remote data"); |
let data = record.cleartext.subscriptions; |
// First make sure we have the same subscriptions on both sides |
- let seenSubscription = {__proto__: null}; |
+ let seenSubscription = Object.create(null); |
for (let remoteSubscription of data) |
{ |
seenSubscription[remoteSubscription.url] = true; |
if (remoteSubscription.url in FilterStorage.knownSubscriptions) |
{ |
let subscription = FilterStorage.knownSubscriptions[remoteSubscription.url]; |
if (!trackerInstance.didSubscriptionChange(remoteSubscription)) |
{ |
@@ -287,17 +287,17 @@ ABPStore.prototype = |
if (!(subscription.url in seenSubscription) && subscription instanceof DownloadableSubscription && !trackerInstance.didSubscriptionChange(subscription)) |
{ |
// Subscription was removed remotely, remove it locally as well |
FilterStorage.removeSubscription(subscription); |
} |
} |
// Now sync the custom filters |
- let seenFilter = {__proto__: null}; |
+ let seenFilter = Object.create(null); |
for (let remoteSubscription of data) |
{ |
if (!("filters" in remoteSubscription)) |
continue; |
for (let remoteFilter of remoteSubscription.filters) |
{ |
seenFilter[remoteFilter.text] = true; |