Skip to content

createImageBitmap's Promise resolving #10611

Closed
@Kaiido

Description

@Kaiido

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    interopImplementations are not interoperable with each othertopic: canvas

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions