Skip to content

Let MediaMetadata#artwork return the same value (unless set to a new value) #183

@foolip

Description

@foolip

https://wicg.github.io/mediasession/#dom-mediametadata-artwork

The definition of the getter is to return a new array on every access. While Web IDL doesn't disallow this, avoiding this is the reason that sequence<T> is no longer allowed as an attribute type.

Rather than returning a new array each time, the setter could set an internal slot that is used in the getter. This is almost how it's implemented in Blink, except that a new frozen array is created.

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