You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I am not sure what we should do here. Implementations probably follow the spec
We anyway have an issue here since setting the attribute will not store the same object.
Maybe we should add methods instead but this seems late here.
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.
The text was updated successfully, but these errors were encountered: