summaryrefslogtreecommitdiffstats
path: root/devtools/client/netmonitor/src/widgets/WaterfallBackground.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/netmonitor/src/widgets/WaterfallBackground.js')
-rw-r--r--devtools/client/netmonitor/src/widgets/WaterfallBackground.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/devtools/client/netmonitor/src/widgets/WaterfallBackground.js b/devtools/client/netmonitor/src/widgets/WaterfallBackground.js
index e2be7f5715..807b5a25b6 100644
--- a/devtools/client/netmonitor/src/widgets/WaterfallBackground.js
+++ b/devtools/client/netmonitor/src/widgets/WaterfallBackground.js
@@ -133,7 +133,11 @@ class WaterfallBackground {
// Flush the image data and cache the waterfall background.
pixelArray.set(view8bit);
- this.ctx.putImageData(imageData, 0, 0);
+ try {
+ this.ctx.putImageData(imageData, 0, 0);
+ } catch (e) {
+ console.error("WaterfallBackground crash error", e);
+ }
this.setImageElement("waterfall-background", this.canvas);
}