Bug 1385226 - Fix gcli Shift+F12 key shortcut. r=jdescottes
authorAlexandre Poirot <poirot.alex@gmail.com>
Fri, 28 Jul 2017 11:53:05 +0200
changeset 420685 ffab1b6034f91045ca61b3684f20bf92ff235b2f
parent 420684 280149adf2844c7f04f92e67f6beaae3d27e3693
child 420686 ef73974af658a8ccdb723a0ef151c609534539cc
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1385226
milestone56.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 1385226 - Fix gcli Shift+F12 key shortcut. r=jdescottes MozReview-Commit-ID: Bcs14MEyHXF
devtools/client/framework/devtools-browser.js
--- a/devtools/client/framework/devtools-browser.js
+++ b/devtools/client/framework/devtools-browser.js
@@ -298,17 +298,17 @@ var gDevToolsBrowser = exports.gDevTools
     }
     // Otherwise implement all other key shortcuts individually here
     switch (key.id) {
       case "toggleToolbox":
       case "toggleToolboxF12":
         gDevToolsBrowser.toggleToolboxCommand(window.gBrowser);
         break;
       case "toggleToolbar":
-        window.DeveloperToolbar.focusToggle();
+        gDevToolsBrowser.getDeveloperToolbar(window).focusToggle();
         break;
       case "webide":
         gDevToolsBrowser.openWebIDE();
         break;
       case "browserToolbox":
         BrowserToolboxProcess.init();
         break;
       case "browserConsole":