зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1473513 - resolve memory leak r=ochameau
Depends on D6476 Differential Revision: https://phabricator.services.mozilla.com/D6477 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a0882d24f7
Коммит
19b4e8fbe6
|
@ -251,7 +251,7 @@ const ActorRegistry = {
|
|||
constructor: "AccessibilityActor",
|
||||
type: { target: true }
|
||||
});
|
||||
this.registerModule("devtools/server/actors/screenshot", {
|
||||
this.registerModule("devtools/server/actors/screenshot", {
|
||||
prefix: "screenshot",
|
||||
constructor: "ScreenshotActor",
|
||||
type: { target: true }
|
||||
|
|
|
@ -495,8 +495,8 @@ const browsingContextTargetPrototype = {
|
|||
* Called when the actor is removed from the connection.
|
||||
*/
|
||||
destroy() {
|
||||
Actor.prototype.destroy.call(this);
|
||||
this.exit();
|
||||
Actor.prototype.destroy.call(this);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -90,10 +90,10 @@ const WorkerTargetActor = protocol.ActorClassWithSpec(workerTargetSpec, {
|
|||
},
|
||||
|
||||
destroy() {
|
||||
protocol.Actor.prototype.destroy.call(this);
|
||||
if (this._attached) {
|
||||
this._detach();
|
||||
}
|
||||
protocol.Actor.prototype.destroy.call(this);
|
||||
},
|
||||
|
||||
connect(options) {
|
||||
|
|
|
@ -50,8 +50,8 @@ const PushSubscriptionActor = protocol.ActorClassWithSpec(pushSubscriptionSpec,
|
|||
},
|
||||
|
||||
destroy() {
|
||||
protocol.Actor.prototype.destroy.call(this);
|
||||
this._subscription = null;
|
||||
protocol.Actor.prototype.destroy.call(this);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ const { RootActor } = require("devtools/server/actors/root");
|
|||
const { ThreadActor } = require("devtools/server/actors/thread");
|
||||
const { DebuggerServer } = require("devtools/server/main");
|
||||
const { ActorRegistry } = require("devtools/server/actor-registry");
|
||||
const promise = require("promise");
|
||||
|
||||
var gTestGlobals = [];
|
||||
DebuggerServer.addTestGlobal = function(global) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче