Bug 1430501 - Port bug 1416711 to TB: Migrate addBrowser to registerActors. r=philipp a=jorgk
authorJorg K <jorgk@jorgk.com>
Mon, 12 Mar 2018 21:54:15 +0100
changeset 31296 3c4321f4a9925db0636704223fccf3fc561a5185
parent 31295 2d485f0d37234b89844471262b6ecfbea2b86861
child 31297 f6fdb18ef5e8f2856752f15f575368afa2d909c5
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersphilipp, jorgk
bugs1430501, 1416711
Bug 1430501 - Port bug 1416711 to TB: Migrate addBrowser to registerActors. r=philipp a=jorgk
mail/components/devtools/devtools-loader.js
--- a/mail/components/devtools/devtools-loader.js
+++ b/mail/components/devtools/devtools-loader.js
@@ -61,17 +61,17 @@ DevToolsStartup.prototype = {
     // loaded instance. Thunderbird now also provides the Browser Toolbox for
     // chrome debugging, which uses its own separate loader instance.
     DevToolsLoader.prototype.invisibleToDebugger = false;
     devtools.invisibleToDebugger = false;
 
     if (!DebuggerServer.initialized) {
       // Initialize and load the toolkit/browser actors
       DebuggerServer.init();
-      DebuggerServer.addBrowserActors("mail:3pane");
+      DebuggerServer.registerActors({ browser: true, root: true, tab: true, windowType: "mail:3pane" });
     }
 
     if (!DebuggerServer.createRootActor.isMailRootActor) {
       // Register the Thunderbird root actor
       DebuggerServer.registerModule("resource:///modules/tb-root-actor.js");
     }
   }
 };