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

Issue 2703993002: media: Resolve pending SetCdm() when WebMediaPlayerImpl is destructed (Closed)

Created:
3 years, 10 months ago by xhwang
Modified:
3 years, 10 months ago
Reviewers:
*jrummell, ddorwin
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, blink-reviews, eric.carlson_apple.com, feature-media-reviews_chromium.org, apacible+watch_chromium.org, haraken, xjz+watch_chromium.org, erickung+watch_chromium.org, Srirama, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Resolve pending SetCdm() when WebMediaPlayerImpl is destructed When WebMediaPlayerImpl is destructed, if there is a pending SetCdm() call, we should resolve the promise so that the CDM can still be set on the HTMLMediaElement. If we load() again, that CDM will be used as the initial CDM for the new WebMediaPlayerImpl created. BUG=693813 TEST=Added a new layout test. Review-Url: https://codereview.chromium.org/2703993002 Cr-Commit-Position: refs/heads/master@{#452905} Committed: https://chromium.googlesource.com/chromium/src/+/5113973bc4260b94300d81502935d5ebab57a1d0

Patch Set 1 #

Patch Set 2 : add layout test #

Total comments: 8

Patch Set 3 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -2 lines) Patch
M media/blink/webmediaplayer_impl.cc View 5 chunks +11 lines, -0 lines 0 comments Download
M media/renderers/renderer_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp View 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
xhwang
PTAL
3 years, 10 months ago (2017-02-18 18:08:32 UTC) #7
xhwang
I added a layout test, but it's hard to repro the original issue given this ...
3 years, 10 months ago (2017-02-18 18:14:52 UTC) #8
jrummell
lgtm https://codereview.chromium.org/2703993002/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html (right): https://codereview.chromium.org/2703993002/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html#newcode42 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html:42: if (encryptedEventIndex == 2) { Maybe assert that ...
3 years, 10 months ago (2017-02-22 00:36:48 UTC) #13
xhwang
comments addressed
3 years, 10 months ago (2017-02-24 17:36:50 UTC) #14
xhwang
https://codereview.chromium.org/2703993002/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html (right): https://codereview.chromium.org/2703993002/diff/20001/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html#newcode42 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-reset-src-during-setmediakeys.html:42: if (encryptedEventIndex == 2) { On 2017/02/22 00:36:48, jrummell ...
3 years, 10 months ago (2017-02-24 17:37:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2703993002/40001
3 years, 10 months ago (2017-02-24 17:38:44 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 19:37:01 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5113973bc4260b94300d81502935...

Powered by Google App Engine
This is Rietveld 408576698