mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1245615 - Just clear hostVsStores map as some async code may still use them. r=mratcliffe
This commit is contained in:
parent
458420bbd7
commit
6dbab57938
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user