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 222830 16061a0b13e2ad5b9f21c237e53e215467516b26
parent 222829 569130fd40b5ee417e56b5ebd64d40b5a7c24441
child 222831 8455c5f7dbb17db8a00ff61a0d758f9da6037814
push id10723
push userejpbruel@mozilla.com
push dateFri, 09 Jan 2015 13:04:16 +0000
treeherderfx-team@16061a0b13e2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof
bugs1118801
milestone37.0a1
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;