RESOLVED FIXED 168041
[EME] Implement MediaKeySession::load()
https://bugs.webkit.org/show_bug.cgi?id=168041
Summary [EME] Implement MediaKeySession::load()
Zan Dobersek
Reported 2017-02-09 00:38:40 PST
SSIA.
Attachments
Patch (24.62 KB, patch)
2017-02-09 06:44 PST, Zan Dobersek
no flags
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (840.12 KB, application/zip)
2017-02-09 07:50 PST, Build Bot
no flags
Archive of layout-test-results from ews116 for mac-elcapitan (1.62 MB, application/zip)
2017-02-09 08:02 PST, Build Bot
no flags
Archive of layout-test-results from ews103 for mac-elcapitan (997.00 KB, application/zip)
2017-02-09 08:09 PST, Build Bot
no flags
Patch for landing (26.51 KB, patch)
2017-02-09 10:39 PST, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2017-02-09 06:44:31 PST
Build Bot
Comment 2 2017-02-09 07:50:26 PST
Comment on attachment 301032 [details] Patch Attachment 301032 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3045833 New failing tests: media/encrypted-media/mock-MediaKeySession-load.html
Build Bot
Comment 3 2017-02-09 07:50:29 PST
Created attachment 301037 [details] Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Xabier Rodríguez Calvar
Comment 4 2017-02-09 08:00:36 PST
Comment on attachment 301032 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301032&action=review > Source/WebCore/Modules/encryptedmedia/CDM.cpp:658 > + if (!m_private) > + return std::nullopt; > + return m_private->sanitizeSessionId(sessionId); You might want to use (or not) ? : > Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp:249 > + // 5. If the result of running the Is persistent session type? algorithm on this object's session type is false, return a promise rejected with a newly created TypeError. I love this spec algorithm :) > Source/WebCore/testing/MockCDMFactory.cpp:207 > + if (equalLettersIgnoringASCIICase(sessionId, "valid-loaded-session")) > + return sessionId; > + return std::nullopt; ? : if you feel like
Build Bot
Comment 5 2017-02-09 08:02:23 PST
Comment on attachment 301032 [details] Patch Attachment 301032 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3045828 New failing tests: media/encrypted-media/mock-MediaKeySession-load.html
Build Bot
Comment 6 2017-02-09 08:02:25 PST
Created attachment 301039 [details] Archive of layout-test-results from ews116 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 7 2017-02-09 08:09:07 PST
Comment on attachment 301032 [details] Patch Attachment 301032 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/3046652 New failing tests: media/encrypted-media/mock-MediaKeySession-load.html
Build Bot
Comment 8 2017-02-09 08:09:10 PST
Created attachment 301040 [details] Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Zan Dobersek
Comment 9 2017-02-09 10:34:48 PST
Comment on attachment 301032 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301032&action=review >> Source/WebCore/testing/MockCDMFactory.cpp:207 >> + return std::nullopt; > > ? : if you feel like I tried following the style that was already in use in this file.
Zan Dobersek
Comment 10 2017-02-09 10:39:06 PST
Created attachment 301054 [details] Patch for landing
Zan Dobersek
Comment 11 2017-02-10 02:44:14 PST
Note You need to log in before you can comment on or make changes to this bug.