Bug 1506513: Use clientWrapper instead of client. r=jdescottes
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Fri, 07 Dec 2018 14:11:39 +0000
changeset 449611 62dd0d1a37b723f368848036c3e650c3ccfb44cf
parent 449610 8a6112888975a607adb7efc694bb7fe9cc5ed618
child 449612 7b9332b0c24d8f40310d9020693bb2321f32c935
push id74374
push userdakatsuka@mozilla.com
push dateFri, 07 Dec 2018 16:28:35 +0000
treeherderautoland@7b9332b0c24d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1506513
milestone65.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 1506513: Use clientWrapper instead of client. r=jdescottes Differential Revision: https://phabricator.services.mozilla.com/D13970
devtools/client/aboutdebugging-new/src/actions/debug-targets.js
--- a/devtools/client/aboutdebugging-new/src/actions/debug-targets.js
+++ b/devtools/client/aboutdebugging-new/src/actions/debug-targets.js
@@ -61,17 +61,18 @@ function inspectDebugTarget(type, id) {
           await debugRemoteAddon(id, devtoolsClient);
         } else if (runtimeType === RUNTIMES.THIS_FIREFOX) {
           debugLocalAddon(id);
         }
         break;
       }
       case DEBUG_TARGETS.WORKER: {
         // Open worker toolbox in new window.
-        const front = runtimeDetails.client.client.getActor(id);
+        const devtoolsClient = runtimeDetails.clientWrapper.client;
+        const front = devtoolsClient.getActor(id);
         gDevToolsBrowser.openWorkerToolbox(front);
         break;
       }
 
       default: {
         console.error("Failed to inspect the debug target of " +
                       `type: ${ type } id: ${ id }`);
       }