Bug 1576115 - Expose processes from xpcshell test DebuggerServer. r=jdescottes
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 13 Nov 2019 09:51:01 +0000
changeset 501725 eec2b47cdc07333154fc07c0576d200076d4f3de
parent 501724 351b6e9f017b4587adaaf4de0d2b209338f1a4a6
child 501726 9b150dd56999e1c2b7aa47cf9c0e8d96c6c8eff3
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1576115
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1576115 - Expose processes from xpcshell test DebuggerServer. r=jdescottes With Fission, we expect RootActor.listProcesses to return a list of all process actors. Differential Revision: https://phabricator.services.mozilla.com/D52646
testing/xpcshell/dbg-actors.js
--- a/testing/xpcshell/dbg-actors.js
+++ b/testing/xpcshell/dbg-actors.js
@@ -4,16 +4,17 @@
 
 /* globals require, exports */
 
 "use strict";
 
 const { DebuggerServer } = require("devtools/server/debugger-server");
 const { RootActor } = require("devtools/server/actors/root");
 const { BrowserTabList } = require("devtools/server/actors/webbrowser");
+const { ProcessActorList } = require("devtools/server/actors/process");
 const Services = require("Services");
 const {
   ActorRegistry,
 } = require("devtools/server/actors/utils/actor-registry");
 
 /**
  * xpcshell-test (XPCST) specific actors.
  *
@@ -21,16 +22,17 @@ const {
 
 /**
  * Construct a root actor appropriate for use in a server running xpcshell
  * tests. <snip boilerplate> :)
  */
 function createRootActor(connection) {
   let parameters = {
     tabList: new XPCSTTabList(connection),
+    processList: new ProcessActorList(),
     globalActorFactories: ActorRegistry.globalActorFactories,
     onShutdown() {
       // If the user never switches to the "debugger" tab we might get a
       // shutdown before we've attached.
       Services.obs.notifyObservers(null, "xpcshell-test-devtools-shutdown");
     },
   };
   return new RootActor(connection, parameters);