Skip to content

Clarify the Clone configuration algorithm #762

@padenot

Description

@padenot

When looking a Clone Configuration, and after having found a bug in Gecko, a DOM developer said:

This looks very underspecified in the spec. For one, I don't think any spec defines what assign a copy of config[m] to clone[m]
means. And either that can throw exceptions, and it should be specified what needs to happen, or it doesn't and we need to
figure out what to do in our implementation.

It can throw an exception, a minimal test case (adapted from our bug) would be:

var buf = new ArrayBuffer(4);
buf.transferToFixedLength()
VideoDecoder.isConfigSupported({"codec": "፝a", "description":buf})

Chromium says:

Uncaught (in promise) TypeError: Failed to execute 'isConfigSupported' on 'VideoDecoder': description is detached.

which makes sense to me, but we need to spec it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions