mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
Bug 1145049 - Clean inspector on detach/disconnect. r=pbrosset
This commit is contained in:
parent
4ae9c9ef17
commit
65a839952f
@ -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={}) {
|
||||
|
Loading…
Reference in New Issue
Block a user