Bug 1161072 - Destroy inspector actor on disconnect. r=pbrosset

This commit is contained in:
Alexandre Poirot 2015-05-18 20:15:35 +02:00
parent edc35b9fff
commit 19870be012

View File

@ -3421,6 +3421,16 @@ var InspectorActor = exports.InspectorActor = protocol.ActorClass({
this.tabActor = tabActor;
},
destroy: function () {
protocol.Actor.prototype.destroy.call(this);
},
// Forces destruction of the actor and all its children
// like highlighter, walker and style actors.
disconnect: function() {
this.destroy();
},
get window() this.tabActor.window,
getWalker: method(function(options={}) {