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 468029 e93f256f7159cadf528bc5ff39553616d8c8d3d8
parent 468028 047536b1a60a3752bdd22fcbf4d33651ad101513
child 468030 4261c7933ce9038a0d52a432e70719c7154bb402
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [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