From b0b846d8921b6062f3a98a12a96b8074bfd1541d Mon Sep 17 00:00:00 2001
From: Chun-Min Chang
Date: Wed, 9 Oct 2019 16:36:12 -0700
Subject: [PATCH] Update type of MediaMetadata's artwork
Since the entries in the MediaMetadata's `artwork` are frozen in the
current spec [1], the type of the attribute `artwork` must be
`FrozenArray
When the convert artwork algorithm with input parameter is
-invoked, the user agent MUST run the following steps:
+invoked, where the input is a list of type {{MediaImage}},
+the user agent MUST run the following steps:
Let output be an empty list of type {{MediaImage}}.
@@ -1050,7 +1053,7 @@ invoked, the user agent MUST run the following steps:
images. On getting, it MUST return the result of the following steps:
- Let frozenArtwork be an empty list of type {{MediaImage}}.
+ Let frozenArtwork be an empty list of type object.
+ Convert image into an object
+ whose type is object.
+
- Call Object.freeze on image, to prevent
- accidental mutation by scripts.
+ Call Object.freeze on the object,
+ to prevent accidental mutation by scripts.
- Append image to frozenArtwork.
+ Append the object to frozenArtwork.
@@ -1089,10 +1096,18 @@ invoked, the user agent MUST run the following steps:
Create a frozen array from frozenArtwork.
- On setting, it MUST run the
- convert artwork algorithm with the new value as input, and
- set the {{MediaMetadata}}'s artwork images as the
- result if it succeeded.
+ On setting, it MUST run the following steps:
+
+
+ Convert the frozenArtwork from a list of type object
+ into a list of type {{MediaImage}}.
+