Bug 1495383 - Add Worker, ServiceWorker and Process support on android debugger server;r=daisuke,ochameau
authorJulian Descottes <jdescottes@mozilla.com>
Thu, 17 Jan 2019 07:58:57 +0000
changeset 514230 824fafc39762398f102ee7f17cac42c3fd04ed89
parent 514229 00614ec6e765206c325364b51b8810fddf29234d
child 514231 26303cb81de738dd341f54a00955d76a332c6654
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaisuke, ochameau
bugs1495383
milestone66.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 1495383 - Add Worker, ServiceWorker and Process support on android debugger server;r=daisuke,ochameau I quickly tested on Fennec with the whole stack and I am able to list workers, inspect workers etc... Could not see any issue at first glance. Differential Revision: https://phabricator.services.mozilla.com/D16175
mobile/android/modules/dbg-browser-actors.js
--- a/mobile/android/modules/dbg-browser-actors.js
+++ b/mobile/android/modules/dbg-browser-actors.js
@@ -9,32 +9,42 @@
 /**
  * Fennec-specific actors.
  */
 
 const { RootActor } = require("devtools/server/actors/root");
 const { ActorRegistry } = require("devtools/server/actors/utils/actor-registry");
 const { BrowserTabList, BrowserAddonList, sendShutdownEvent } =
   require("devtools/server/actors/webbrowser");
+const { ServiceWorkerRegistrationActorList } =
+  require("devtools/server/actors/worker/service-worker-registration-list");
+const { WorkerTargetActorList } =
+  require("devtools/server/actors/worker/worker-target-actor-list");
+
+const { ProcessActorList } = require("devtools/server/actors/process");
 
 /**
  * Construct a root actor appropriate for use in a server running in a
  * browser on Android. The returned root actor:
  * - respects the factories registered with ActorRegistry.addGlobalActor,
  * - uses a MobileTabList to supply tab actors,
  * - sends all navigator:browser window documents a Debugger:Shutdown event
  *   when it exits.
  *
  * * @param aConnection DebuggerServerConnection
  *        The conection to the client.
  */
 exports.createRootActor = function createRootActor(aConnection) {
   let parameters = {
     tabList: new MobileTabList(aConnection),
     addonList: new BrowserAddonList(aConnection),
+    workerList: new WorkerTargetActorList(aConnection, {}),
+    serviceWorkerRegistrationList:
+      new ServiceWorkerRegistrationActorList(aConnection),
+    processList: new ProcessActorList(),
     globalActorFactories: ActorRegistry.globalActorFactories,
     onShutdown: sendShutdownEvent,
   };
   return new RootActor(aConnection, parameters);
 };
 
 /**
  * A live list of BrowserTabActors representing the current browser tabs,