Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Issue 2056053003: Change MediaKeys.setServerCertificate() to return Promise<boolean> (Closed)

Created:
4 years, 6 months ago by jrummell
Modified:
4 years, 6 months ago
Reviewers:
xhwang, ddorwin
CC:
chromium-reviews, blink-reviews, haraken, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change MediaKeys.setServerCertificate() to return Promise<boolean> https://github.com/w3c/encrypted-media/issues/145 changed the EME spec so that setServerCertificate() returns Promise<boolean>. Update the implementation to match. This change updates the IDL and returns true on success. NOT_SUPPORTED_ERRORs will resolve with false. BUG=618800 TEST=EME tests pass, www.netflix.com plays Committed: https://crrev.com/e3d85c9614d5864bc3a9506b529036f2d703e0ec Cr-Commit-Position: refs/heads/master@{#399595}

Patch Set 1 #

Total comments: 2

Patch Set 2 : resolve false #

Total comments: 10

Patch Set 3 : changes #

Messages

Total messages: 16 (5 generated)
jrummell
PTAL. This is just updating the IDL to return Promise<boolean>. Actual plumbing through Chromium will ...
4 years, 6 months ago (2016-06-09 23:13:51 UTC) #2
xhwang
https://chromiumcodereview.appspot.com/2056053003/diff/1/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp (right): https://chromiumcodereview.appspot.com/2056053003/diff/1/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp#newcode106 third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp:106: resolve(true); Can we translate completeWithError(NOT_SUPPORTED_ERROR) to resolve(false)? Then we ...
4 years, 6 months ago (2016-06-10 21:40:11 UTC) #3
jrummell
Updated so that NOT_SUPPORTED_ERRORs will resolve with false. https://codereview.chromium.org/2056053003/diff/1/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp (right): https://codereview.chromium.org/2056053003/diff/1/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp#newcode106 third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp:106: resolve(true); ...
4 years, 6 months ago (2016-06-10 23:01:15 UTC) #5
ddorwin
Thanks. https://codereview.chromium.org/2056053003/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html (right): https://codereview.chromium.org/2056053003/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html#newcode24 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html:24: }); Do we need something like this here ...
4 years, 6 months ago (2016-06-13 17:28:09 UTC) #6
xhwang
looking good % nit and ddorwin's comments https://chromiumcodereview.appspot.com/2056053003/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp (right): https://chromiumcodereview.appspot.com/2056053003/diff/20001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp#newcode109 third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp:109: // false." ...
4 years, 6 months ago (2016-06-13 17:45:49 UTC) #7
jrummell
Updated. https://codereview.chromium.org/2056053003/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html (right): https://codereview.chromium.org/2056053003/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html#newcode24 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html:24: }); On 2016/06/13 17:28:09, ddorwin wrote: > Do ...
4 years, 6 months ago (2016-06-13 18:54:13 UTC) #8
ddorwin
lgtm
4 years, 6 months ago (2016-06-13 19:13:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2056053003/40001
4 years, 6 months ago (2016-06-13 23:21:42 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-13 23:27:03 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 23:27:05 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 23:28:23 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e3d85c9614d5864bc3a9506b529036f2d703e0ec
Cr-Commit-Position: refs/heads/master@{#399595}

Powered by Google App Engine
This is Rietveld 408576698