зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1245615 - Nullify hostVsStores only after event unregistration to prevent exceptions. r=mratcliffe
This commit is contained in:
Родитель
6acab52b3f
Коммит
72335833e6
|
@ -213,13 +213,13 @@ StorageActors.defaults = function(typeName, observationTopic, storeObjectType) {
|
|||
},
|
||||
|
||||
destroy: function() {
|
||||
this.hostVsStores = null;
|
||||
if (observationTopic) {
|
||||
Services.obs.removeObserver(this, observationTopic, false);
|
||||
}
|
||||
events.off(this.storageActor, "window-ready", this.onWindowReady);
|
||||
events.off(this.storageActor, "window-destroyed", this.onWindowDestroyed);
|
||||
|
||||
this.hostVsStores = null;
|
||||
this.storageActor = null;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче