Bug 167636 - [EME] Implement MediaKeySession::update()
Summary: [EME] Implement MediaKeySession::update()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords:
Depends on:
Blocks: 158841
  Show dependency treegraph
 
Reported: 2017-01-31 02:59 PST by Zan Dobersek
Modified: 2017-02-01 22:29 PST (History)
5 users (show)

See Also:


Attachments
Patch (28.89 KB, patch)
2017-01-31 03:26 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff
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 Details
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 Details
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 Details
Patch for landing (30.83 KB, patch)
2017-01-31 22:43 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2017-01-31 02:59:04 PST
[EME] Implement MediaKeySession::update()
Comment 1 Zan Dobersek 2017-01-31 03:26:43 PST
Created attachment 300200 [details]
Patch
Comment 2 WebKit Commit Bot 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.
Comment 3 Xabier Rodríguez Calvar 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.
Comment 4 Build Bot 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
Comment 5 Build Bot 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
Comment 6 Build Bot 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
Comment 7 Build Bot 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
Comment 8 Build Bot 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
Comment 9 Build Bot 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
Comment 10 Zan Dobersek 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())`.
Comment 11 Zan Dobersek 2017-01-31 22:43:59 PST
Created attachment 300303 [details]
Patch for landing

Skipped the layout test, addressed review feedback.
Comment 12 Jer Noble 2017-02-01 08:39:03 PST
Late to the party here, but this all LGTM. Thanks!
Comment 13 Zan Dobersek 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>
Comment 14 Zan Dobersek 2017-02-01 22:29:40 PST
All reviewed patches have been landed.  Closing bug.