зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1161072 - Destroy inspector actor on disconnect. r=pbrosset
This commit is contained in:
Родитель
4d22bf0963
Коммит
a16b27a304
|
@ -3421,6 +3421,16 @@ var InspectorActor = exports.InspectorActor = protocol.ActorClass({
|
||||||
this.tabActor = tabActor;
|
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,
|
get window() this.tabActor.window,
|
||||||
|
|
||||||
getWalker: method(function(options={}) {
|
getWalker: method(function(options={}) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче