Bug 1419592 - Use most recent panel in Browser Content Toolbox. r=ochameau
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 21 Nov 2017 17:10:05 -0600
changeset 394929 09d9f11e8264d797651d5cf39111bf1053864a5d
parent 394928 2560a150250d769e02fa843d4f254e347dba11ff
child 394930 ea7f2137961f99f990f6c1e5738c88843403be58
push id33025
push usershindli@mozilla.com
push dateTue, 05 Dec 2017 09:57:50 +0000
treeherdermozilla-central@390c1aad9d4d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1419592
milestone59.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 1419592 - Use most recent panel in Browser Content Toolbox. r=ochameau MozReview-Commit-ID: sNEVauLh0A
devtools/client/framework/devtools-browser.js
--- a/devtools/client/framework/devtools-browser.js
+++ b/devtools/client/framework/devtools-browser.js
@@ -371,19 +371,18 @@ var gDevToolsBrowser = exports.gDevTools
       if (child == mm) {
         processId = i;
         break;
       }
     }
     if (processId) {
       return this._getContentProcessTarget(processId)
           .then(target => {
-            // Display a new toolbox, in a new window, with debugger by default
-            return gDevTools.showToolbox(target, "jsdebugger",
-                                         Toolbox.HostType.WINDOW);
+            // Display a new toolbox in a new window
+            return gDevTools.showToolbox(target, null, Toolbox.HostType.WINDOW);
           });
     }
 
     let msg = L10N.getStr("toolbox.noContentProcessForTab.message");
     Services.prompt.alert(null, "", msg);
     return Promise.reject(msg);
   },