Backed out changeset b4b8a8dd9ce8 (bug 1239008) for dt1 test failures

This commit is contained in:
Carsten "Tomcat" Book 2016-01-14 16:43:20 +01:00
parent 226d076b96
commit bf074cd509
4 changed files with 32 additions and 35 deletions

View File

@ -6,7 +6,7 @@
const { Cc, Ci, Cu } = require("chrome");
const { ChromeDebuggerActor } = require("devtools/server/actors/chrome-debugger");
const { ChromeDebuggerActor } = require("devtools/server/actors/script");
const { WebConsoleActor } = require("devtools/server/actors/webconsole");
const makeDebugger = require("devtools/server/actors/utils/make-debugger");
const { ActorPool } = require("devtools/server/main");
@ -75,7 +75,7 @@ ChildProcessActor.prototype = {
}
if (!this.threadActor) {
this.threadActor = new ChromeDebuggerActor(this);
this.threadActor = new ChromeDebuggerActor(this.conn, this);
this._contextPool.addActor(this.threadActor);
}

View File

@ -1,32 +0,0 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { ActorClass } = require("devtools/server/protocol");
const { ThreadActor } = require("devtools/server/actors/script");
/**
* ChromeDebuggerActor is a thin wrapper over ThreadActor, slightly changing
* some of its behavior.
*/
let ChromeDebuggerActor = ActorClass({
typeName: "chromeDebugger",
extends: ThreadActor,
/**
* Create the actor.
*
* @param parent object
* This actor's parent actor. See ThreadActor for a list of expected
* properties.
*/
initialize: function(parent) {
ThreadActor.call(this, parent);
}
});
exports.ChromeDebuggerActor = ChromeDebuggerActor;

View File

@ -17,7 +17,6 @@ DevToolsModules(
'canvas.js',
'child-process.js',
'childtab.js',
'chrome-debugger.js',
'chrome.js',
'common.js',
'csscoverage.js',

View File

@ -3394,6 +3394,36 @@ function hackDebugger(Debugger) {
});
}
/**
* Creates an actor for handling chrome debugging. ChromeDebuggerActor is a
* thin wrapper over ThreadActor, slightly changing some of its behavior.
*
* @param aConnection object
* The DebuggerServerConnection with which this ChromeDebuggerActor
* is associated. (Currently unused, but required to make this
* constructor usable with addGlobalActor.)
*
* @param aParent object
* This actor's parent actor. See ThreadActor for a list of expected
* properties.
*/
function ChromeDebuggerActor(aConnection, aParent)
{
ThreadActor.call(this, aParent);
}
ChromeDebuggerActor.prototype = Object.create(ThreadActor.prototype);
update(ChromeDebuggerActor.prototype, {
constructor: ChromeDebuggerActor,
// A constant prefix that will be used to form the actor ID by the server.
actorPrefix: "chromeDebugger"
});
exports.ChromeDebuggerActor = ChromeDebuggerActor;
/**
* Creates an actor for handling add-on debugging. AddonThreadActor is
* a thin wrapper over ThreadActor.