[EME] MediaKeySystemConfiguration distinctiveIdentifier and persistentState should default to optional
Created attachment 357585 [details] Patch
Comment on attachment 357585 [details] Patch Clearing flags on attachment: 357585 Committed r239373: <https://trac.webkit.org/changeset/239373>
All reviewed patches have been landed. Closing bug.
<rdar://problem/46835043>
Comment on attachment 357585 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357585&action=review > Source/WebCore/ChangeLog:11 > + https://www.w3.org/TR/encrypted-media/#dom-mediakeysystemconfiguration > + says that distinctiveIdentifier and persistentState default to > + optional. Our implementation does not define a default leaving it > + to the first option of the enum, which currently is Required. Actually, I think it was worse than that before. Our implementation was not initializing the field, which doesn’t guarantee what it will be initialized to! We were getting a 0, but that wasn’t guaranteed.