Make canvas-createImageBitmap-e_srgb.html run cross-browser
There were harness errors in Edge, Firefox and Safari: https://wpt.fyi/results/html/canvas/element/manual/wide-gamut-canvas/canvas-createImageBitmap-e_srgb.html?run_id=657990001&run_id=659880001&run_id=633480001&run_id=663850001 The cause for that was the convertToBlob call not correctly wrapped in a step in testCreateImageBitmapFromColorManagedBlob. That was only the first of multiple errors fixed here: - not handling image or video decode failures, causing timeouts - failures at the end of testCreateImageBitmapFromColorManagedBlob would not have failed the test because promise rejections were not handled - failing in cryptic ways if ImageData dataUnion isn't supported These issues were fixed while also modernizing the tests to use more modern APIs where available, like img.decode() and fetch(). Change-Id: Ia8d0086a2d216dd291c9429460f8a79f8f4fd1c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359991Reviewed-by:Wan-Teh Chang <wtc@google.com> Reviewed-by:
Fernando Serboncini <fserb@chromium.org> Commit-Queue: Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#798674}
Showing
Please register or sign in to comment