Bug 1118801 - Handle uncaught promise rejections in the canvas debugger;r=vporof
authorEddy Bruël <ejpbruel@gmail.com>
Fri, 09 Jan 2015 14:03:46 +0100
changeset 248783 16061a0b13e2ad5b9f21c237e53e215467516b26
parent 248782 569130fd40b5ee417e56b5ebd64d40b5a7c24441
child 248784 8455c5f7dbb17db8a00ff61a0d758f9da6037814
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof
bugs1118801
milestone37.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 1118801 - Handle uncaught promise rejections in the canvas debugger;r=vporof
browser/devtools/canvasdebugger/canvasdebugger.js
--- a/browser/devtools/canvasdebugger/canvasdebugger.js
+++ b/browser/devtools/canvasdebugger/canvasdebugger.js
@@ -817,17 +817,17 @@ let CallsListView = Heritage.extend(Widg
     setConditionalTimeout("screenshot-display", SCREENSHOT_DISPLAY_DELAY, () => {
       return !this._isSliding;
     }, () => {
       let frameSnapshot = SnapshotsListView.selectedItem.attachment.actor
       let functionCall = callItem.attachment.actor;
       frameSnapshot.generateScreenshotFor(functionCall).then(screenshot => {
         this.showScreenshot(screenshot);
         this.highlightedThumbnail = screenshot.index;
-      });
+      }).catch(Cu.reportError);
     });
   },
 
   /**
    * The mousedown listener for the call selection slider.
    */
   _onSlideMouseDown: function() {
     this._isSliding = true;