Skip to content

CTS expects wrong result of mapAsync on invalid buffer #4708

Description

@sagudev

On invalid buffer CTS expects:

{ validationError: true, earlyRejection: false, rejectName: 'OperationError' },

and both firefox and chromium pass it, but spec says we should return abort and no validation error:

  1. If any of the following conditions are unsatisfied:

    this must be valid.

    Set deviceLost to true.

    Issue the map failure steps on contentTimeline.
    Return.

If deviceLost:

Reject p with an AbortError.

This might also be spec issue as introduction PR of spec text talks about device loss, but here it's actually buffer invalidity part of code: gpuweb/gpuweb#5114 (this is buffer not device).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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