Bug 1224577: Fix removing frames from the map so chrome windows aren't leaked from every add-on. r=bz

This commit is contained in:
Dave Townsend 2015-11-17 12:39:08 -08:00
parent 82127c81da
commit 668672baac

View File

@ -194,9 +194,9 @@ const Frame = Class({
dispose: function() {
emit(this, 'detach', this);
ns(this).messageManager.removeMessageListener('sdk/remote/frame/message', ns(this).messageReceived);
ns(this).messageManager = null;
frameMap.delete(ns(this).messageManager);
ns(this).messageManager = null;
},
// Returns the browser or iframe element this frame displays in