Bug 1145049 - Clean inspector on detach/disconnect. r=pbrosset

This commit is contained in:
Alexandre Poirot 2015-04-18 22:36:16 +02:00
parent 4ae9c9ef17
commit 65a839952f

View File

@ -3312,6 +3312,18 @@ var InspectorActor = exports.InspectorActor = protocol.ActorClass({
this.tabActor = tabActor;
},
destroy: function () {
protocol.Actor.prototype.destroy.call(this);
this._highlighterPromise = null;
this._pageStylePromise = null;
this._walkerPromise = null;
this.tabActor = null;
},
disconnect: function () {
this.destroy();
},
get window() this.tabActor.window,
getWalker: method(function(options={}) {