Closed
Description
What is the issue with the HTML Standard?
As has been reported in #10608, createImageBitmap
doesn't queue a task to resolve its Promise while it's in parallel.
However the situation isn't as simple as just queuing a task since there is a discrepancy here, as can be seen in this test case I set up: https://jsfiddle.net/pnrsxk21/
In Chrome and Safari the Promise is actually resolved synchronously for all source types but Blob
(which I suppose would end up in the file reading task source).
In Firefox however it seems that a task is indeed queued for every kind of source.
I suppose aligning on Firefox's behavior would make the most sense and be the easiest to spec and maintain, but I'm not entirely sure of all the implications here.
cc @whatwg/canvas