Bug 1302202 - Fix splitconsole keypress handler. r=jlongster
authorJason Laster <jlaster@mozilla.com>
Tue, 13 Sep 2016 22:55:05 -0400
changeset 313736 27c6658b2a9004dd996ce79b35a40bb66ce98feb
parent 313735 d566e2962e1f5b1db871323919094651e4d46b33
child 313785 de96dcebba86cf25c6184fc6a0815a225ae737e9
child 313913 8d59556d361f3266ae39a3c26ddb8ddd97f8c4d3
push id30696
push usercbook@mozilla.com
push dateWed, 14 Sep 2016 10:03:00 +0000
treeherdermozilla-central@27c6658b2a90 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlongster
bugs1302202
milestone51.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 1302202 - Fix splitconsole keypress handler. r=jlongster
devtools/client/framework/toolbox.js
--- a/devtools/client/framework/toolbox.js
+++ b/devtools/client/framework/toolbox.js
@@ -546,18 +546,17 @@ Toolbox.prototype = {
     shortcuts.on(L10N.getStr("toolbox.help.key"), selectOptions);
   },
 
   _splitConsoleOnKeypress: function (e) {
     if (e.keyCode === KeyCodes.DOM_VK_ESCAPE) {
       this.toggleSplitConsole();
       // If the debugger is paused, don't let the ESC key stop any pending
       // navigation.
-      let jsdebugger = this.getPanel("jsdebugger");
-      if (jsdebugger && jsdebugger.panelWin.gThreadClient.state == "paused") {
+      if (this._threadClient.state == "paused") {
         e.preventDefault();
       }
     }
   },
 
   /**
    * Add a shortcut key that should work when a split console
    * has focus to the toolbox.