Bug 1245615 - Just clear hostVsStores map as some async code may still use them. r=mratcliffe

This commit is contained in:
Alexandre Poirot 2016-02-17 04:28:05 -08:00
parent 458420bbd7
commit 6dbab57938

View File

@ -219,7 +219,7 @@ StorageActors.defaults = function(typeName, observationTopic, storeObjectType) {
events.off(this.storageActor, "window-ready", this.onWindowReady);
events.off(this.storageActor, "window-destroyed", this.onWindowDestroyed);
this.hostVsStores = null;
this.hostVsStores.clear();
this.storageActor = null;
},
@ -474,7 +474,7 @@ StorageActors.createActor({
},
destroy: function() {
this.hostVsStores = null;
this.hostVsStores.clear();
// We need to remove the cookie listeners early in E10S mode so we need to
// use a conditional here to ensure that we only attempt to remove them in
@ -1180,7 +1180,7 @@ StorageActors.createActor({
},
destroy: function() {
this.hostVsStores = null;
this.hostVsStores.clear();
this.objectsSize = null;
events.off(this.storageActor, "window-ready", this.onWindowReady);