Bug 1454895 - allow toolbox to call getProcess when debugging a local tab. r=jryans
authorBelén Albeza <balbeza@mozilla.com>
Thu, 19 Apr 2018 17:56:02 +0200
changeset 414496 e93f256f7159
parent 414495 047536b1a60a
child 414497 4261c7933ce9
push id33870
push usercsabou@mozilla.com
push dateThu, 19 Apr 2018 22:28:45 +0000
treeherdermozilla-central@5c983ad5a421 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1454895
milestone61.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 1454895 - allow toolbox to call getProcess when debugging a local tab. r=jryans MozReview-Commit-ID: 19bhk3Wn9qE
devtools/client/framework/target.js
--- a/devtools/client/framework/target.js
+++ b/devtools/client/framework/target.js
@@ -408,16 +408,18 @@ TabTarget.prototype = {
 
       // When connecting to a local tab, we only need the root actor.
       // Then we are going to call DebuggerServer.connectToFrame and talk
       // directly with actors living in the child process.
       // We also need browser actors for actor registry which enabled addons
       // to register custom actors.
       // TODO: the comment and implementation are out of sync here. See Bug 1420134.
       DebuggerServer.registerAllActors();
+      // Enable being able to get child process actors
+      DebuggerServer.allowChromeProcess = true;
 
       this._client = new DebuggerClient(DebuggerServer.connectPipe());
       // A local TabTarget will never perform chrome debugging.
       this._chrome = false;
     } else if (this._form.isWebExtension &&
           this.client.mainRoot.traits.webExtensionAddonConnect) {
       // The addonActor form is related to a WebExtensionParentActor instance,
       // which isn't a tab actor on its own, it is an actor living in the parent process