Bug 1301719 - Fix new debugger in remote toolboxes. r=jlongster
authorJason Laster <jlaster@mozilla.com>
Fri, 09 Sep 2016 13:55:15 -0400
changeset 412293 184ffdb1a3acb3aed6c099068cb69758569111e9
parent 412215 2b2dda648fde70cedb9a0d486e730fdec592b5e6
child 412294 fe479117f17398d66954c6242f70cb9d9db7a9e2
child 412304 46153864962d9528500067341be84f68fb7c79ce
child 412306 1b6749a95761982397877c05e628d1ab706fef02
child 412322 da845791ad378835a303e4b5a8bdc88473f166b1
child 412323 018fa77898d0163929a6513a6510c95552a06907
child 412324 d7e09b94ea98c2afaf4d6e9d74d344f2b3e227d6
child 412326 7ed0e30bd92757990339b349e2c92c141cb84579
child 412334 fb0c72a931864ddcb47831f1200622b95af9da08
child 412343 1d618a694625f50701cd99e4a73f223c66327adb
child 412383 6d149586b34a18b4ef65dd0f4f54d9ddcd1e8650
child 412400 ba8e0969086c36d18d5b7fd1667a37175d97fcea
child 412794 5fd6c5ff77a44e6e72e2c9482829e4c8a01c6320
push id29113
push userbgrinstead@mozilla.com
push dateFri, 09 Sep 2016 18:17:53 +0000
reviewersjlongster
bugs1301719
milestone51.0a1
Bug 1301719 - Fix new debugger in remote toolboxes. r=jlongster
devtools/client/debugger/new/panel.js
--- a/devtools/client/debugger/new/panel.js
+++ b/devtools/client/debugger/new/panel.js
@@ -9,17 +9,17 @@ function DebuggerPanel(iframeWindow, too
 }
 
 DebuggerPanel.prototype = {
   open: function() {
     let targetPromise;
     if (!this.toolbox.target.isRemote) {
       targetPromise = this.toolbox.target.makeRemote();
     } else {
-      targetPromise = promise.resolve(this.toolbox.target);
+      targetPromise = Promise.resolve(this.toolbox.target);
     }
 
     return targetPromise.then(() => {
       this.panelWin.Debugger.bootstrap({
         threadClient: this.toolbox.threadClient,
         tabTarget: this.toolbox.target
       });
       return this;