Properly cleanup the tab actors when disconnecting (bug 983121). r=rcampbell

--HG--
extra : rebase_source : b50703c2b2e65a321af9535806903ee6671381c6
This commit is contained in:
Panos Astithas 2014-03-13 15:15:51 +02:00
parent ef183a62bc
commit c41acc9232

View File

@ -624,6 +624,7 @@ TabActor.prototype = {
disconnect: function BTA_disconnect() {
this._detach();
this._extraActors = null;
this._chromeEventHandler = null;
},
/**
@ -1004,6 +1005,12 @@ Object.defineProperty(BrowserTabActor.prototype, "browser", {
configurable: false
});
BrowserTabActor.prototype.disconnect = function() {
TabActor.prototype.disconnect.call(this);
this._browser = null;
this._tabbrowser = null;
};
BrowserTabActor.prototype.exit = function() {
TabActor.prototype.exit.call(this);
this._browser = null;