mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1161072 - Destroy inspector actor on disconnect. r=pbrosset
This commit is contained in:
parent
4d22bf0963
commit
a16b27a304
@ -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={}) {
|
||||
|
Loading…
Reference in New Issue
Block a user