RESOLVED FIXED 167636
[EME] Implement MediaKeySession::update()
https://bugs.webkit.org/show_bug.cgi?id=167636
Summary [EME] Implement MediaKeySession::update()
Zan Dobersek
Reported 2017-01-31 02:59:04 PST
[EME] Implement MediaKeySession::update()
Attachments
Patch (28.89 KB, patch)
2017-01-31 03:26 PST, Zan Dobersek
no flags
Archive of layout-test-results from ews102 for mac-elcapitan (884.16 KB, application/zip)
2017-01-31 04:27 PST, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (858.77 KB, application/zip)
2017-01-31 04:31 PST, Build Bot
no flags
Archive of layout-test-results from ews114 for mac-elcapitan (1.62 MB, application/zip)
2017-01-31 04:37 PST, Build Bot
no flags
Patch for landing (30.83 KB, patch)
2017-01-31 22:43 PST, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2017-01-31 03:26:43 PST
WebKit Commit Bot
Comment 2 2017-01-31 03:27:51 PST
Attachment 300200 [details] did not pass style-queue: ERROR: Source/WebCore/testing/MockCDMFactory.cpp:186: Missing space before { [whitespace/braces] [5] ERROR: Source/WebCore/testing/MockCDMFactory.cpp:282: Missing space before { [whitespace/braces] [5] Total errors found: 2 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Xabier Rodríguez Calvar
Comment 3 2017-01-31 04:20:25 PST
Comment on attachment 300200 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=300200&action=review Other than a couple of nits, I think it is ok. Jer, Eric, how does this look to you? > Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp:354 > + // TODO: At this point the implementations of preceding steps can't fail. FIXME. > Source/WebCore/testing/MockCDMFactory.cpp:186 > + String{ response.data(), response.size() }.split(ASCIILiteral(" "), responseArray); String { > Source/WebCore/testing/MockCDMFactory.cpp:282 > + String{ response.data(), response.size() }.split(ASCIILiteral(" "), responseVector); String { > Source/WebCore/testing/MockCDMFactory.cpp:289 > + // TODO: Session closure, key status, expiration and message handling should be implemented FIXME > LayoutTests/media/encrypted-media/mock-MediaKeySession-update.html:93 > + run('promise = mediaKeySession.update(stringToUInt8Array("invalid-response"))'); > + shouldReject(promise).then(next, next); > + }, next); These lines seem to be not properly indented. > LayoutTests/media/encrypted-media/mock-MediaKeySession-update.html:104 > + run('promise = mediaKeySession.update(stringToUInt8Array("valid-response"))'); > + shouldResolve(promise).then(next, next); > + }, next); Ditto. > LayoutTests/media/encrypted-media/mock-MediaKeySession-update.html:115 > + run('promise = mediaKeySession.update(stringToUInt8Array("valid-response invalid-format"))'); > + shouldReject(promise).then(next, next); > + }, next); Ditto.
Build Bot
Comment 4 2017-01-31 04:27:02 PST
Comment on attachment 300200 [details] Patch Attachment 300200 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2978929 New failing tests: media/encrypted-media/mock-MediaKeySession-update.html
Build Bot
Comment 5 2017-01-31 04:27:05 PST
Created attachment 300202 [details] Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 6 2017-01-31 04:31:18 PST
Comment on attachment 300200 [details] Patch Attachment 300200 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2978935 New failing tests: media/encrypted-media/mock-MediaKeySession-update.html
Build Bot
Comment 7 2017-01-31 04:31:21 PST
Created attachment 300203 [details] Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 8 2017-01-31 04:37:54 PST
Comment on attachment 300200 [details] Patch Attachment 300200 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2978951 New failing tests: media/encrypted-media/mock-MediaKeySession-update.html
Build Bot
Comment 9 2017-01-31 04:37:57 PST
Created attachment 300204 [details] Archive of layout-test-results from ews114 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Zan Dobersek
Comment 10 2017-01-31 22:33:23 PST
Comment on attachment 300200 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=300200&action=review >> Source/WebCore/testing/MockCDMFactory.cpp:282 >> + String{ response.data(), response.size() }.split(ASCIILiteral(" "), responseVector); > > String { This is a problem with the style checker. This isn't a scope definition, it's a brace-initialization. Nobody is writing `String (response.data(), response.size())`.
Zan Dobersek
Comment 11 2017-01-31 22:43:59 PST
Created attachment 300303 [details] Patch for landing Skipped the layout test, addressed review feedback.
Jer Noble
Comment 12 2017-02-01 08:39:03 PST
Late to the party here, but this all LGTM. Thanks!
Zan Dobersek
Comment 13 2017-02-01 22:29:30 PST
Comment on attachment 300303 [details] Patch for landing Clearing flags on attachment: 300303 Committed r211550: <http://trac.webkit.org/changeset/211550>
Zan Dobersek
Comment 14 2017-02-01 22:29:40 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.