RESOLVED FIXED 167869
[EME] Implement MediaKeySession::close()
https://bugs.webkit.org/show_bug.cgi?id=167869
Summary [EME] Implement MediaKeySession::close()
Zan Dobersek
Reported 2017-02-05 23:32:56 PST
SSIA.
Attachments
Patch (15.51 KB, patch)
2017-02-05 23:56 PST, Zan Dobersek
no flags
Patch for landing (15.33 KB, patch)
2017-02-08 02:24 PST, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2017-02-05 23:56:00 PST
Jer Noble
Comment 2 2017-02-06 08:40:15 PST
Comment on attachment 300693 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=300693&action=review > LayoutTests/media/encrypted-media/mock-MediaKeySession-close.html:57 > + function stringToUInt8Array(str) > + { > + var array = new Uint8Array(str.length); > + for (var i=0; i<str.length; i++) > + array[i] = str.charCodeAt(i); > + return array; So recently Alex Christensen landed support for TextEncoder, which is awesome, since we can now do something like: var encoder = new TextEncoder(); function stringToUint8Array(str) { return encoder.encode(str); } (or just use encoder.encode(str) everywhere directly.) I need to go back over all our test cases that use stringToUint8Array() and adapt them to use TextEncoder instead. If you'd like, you could do this before landing, or leave it for me to do later.
Zan Dobersek
Comment 3 2017-02-06 11:48:35 PST
Comment on attachment 300693 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=300693&action=review >> LayoutTests/media/encrypted-media/mock-MediaKeySession-close.html:57 >> + return array; > > So recently Alex Christensen landed support for TextEncoder, which is awesome, since we can now do something like: > > var encoder = new TextEncoder(); > > function stringToUint8Array(str) { return encoder.encode(str); } > > (or just use encoder.encode(str) everywhere directly.) > > I need to go back over all our test cases that use stringToUint8Array() and adapt them to use TextEncoder instead. If you'd like, you could do this before landing, or leave it for me to do later. I can do it before landing. I think using it directly everywhere would work best.
Zan Dobersek
Comment 4 2017-02-08 02:24:42 PST
Created attachment 300884 [details] Patch for landing
Zan Dobersek
Comment 5 2017-02-08 02:26:56 PST
Comment on attachment 300884 [details] Patch for landing Clearing flags on attachment: 300884 Committed r211856: <http://trac.webkit.org/changeset/211856>
Zan Dobersek
Comment 6 2017-02-08 02:27:04 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.