Closed youennf closed 1 month ago
Also fixes https://github.com/w3c/mediasession/issues/241.
May also fix https://github.com/w3c/mediasession/issues/183
@foolip, @annevk, I am interested in your feedback on the PR, since it is touching WebIDL, FrozenArray and friends.
@annevk, I updated the convert links. @steimelchrome, does this look good to you? Maybe @padenot as well on Firefox side?
Testing now actually, Firefox is actually aligned with the spec (metadata.artwork === metadata.artwork
) but Safari and Chrome are not.
I'll file a bug on WebKit and Chrome repository.
Fixes https://github.com/w3c/mediasession/issues/237
Introduce a slot where we store the FrozenArray so that the getter always returns the same object. Make sure the slot is reset when the setter is called.
Implement the conversion on setter and on getter. Based on https://github.com/w3c/mediasession/pull/243 work from @ChunMinChang
Preview | Diff