mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Bug 1884571 - [devtools] Catch and log the waterfall background error to the browser console r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204865
This commit is contained in:
parent
0e321f79be
commit
991d7c1b6f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user