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

Issue 2454333002: Add EME Layout test for unclosed the key session (Closed)

Created:
4 years, 1 month ago by Dongheun Kang
Modified:
4 years ago
Reviewers:
haraken, jrummell, ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, blink-reviews, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add EME Layout test for unclosed key session EME spec notes that "the User Agent must use the CDM to close the session before User Agent state associated with the session is deleted" So add test close the key session associated with the object when the page is inaccessible. R=jrummell@chromium.org, ddorwin@chromium.org, haraken@chromium.org BUG=660750 TEST=EME layout tests pass Committed: https://crrev.com/f6f57160426b548a43d8ebc1b1c70c3796dc7923 Cr-Commit-Position: refs/heads/master@{#434087}

Patch Set 1 #

Patch Set 2 : Call closeTask before MediaKeySession::contextDestroyed #

Patch Set 3 : Call closeTask before MediaKeySession::contextDestroyed #

Total comments: 5

Patch Set 4 : Call closeTask before MediaKeySession::contextDestroyed #

Total comments: 2

Patch Set 5 : Call closeTask before MediaKeySession::contextDestroyed #

Total comments: 3

Patch Set 6 : Add EME Layout test for unclosed the key session #

Patch Set 7 : Add EME Layout test for unclosed the key session #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-close-and-context-destroyed.html View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/resources/encrypted-media-session-close-and-context-destroyed-iframe.html View 1 2 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (17 generated)
Dongheun Kang
Dear jrunmell If call contextDestroyed before close session, clear session without closeTask. I found this ...
4 years, 1 month ago (2016-10-28 06:43:03 UTC) #1
ddorwin
Thanks. Please file a bug at crbug.com, including what happens. Is there a crash? Also, ...
4 years, 1 month ago (2016-10-28 14:53:08 UTC) #3
Dongheun Kang
On 2016/10/28 14:53:08, ddorwin wrote: > Thanks. Please file a bug at http://crbug.com, including what ...
4 years, 1 month ago (2016-10-31 01:19:16 UTC) #4
Dongheun Kang
On 2016/10/28 14:53:08, ddorwin wrote: > Thanks. Please file a bug at http://crbug.com, including what ...
4 years, 1 month ago (2016-11-01 01:13:29 UTC) #5
haraken
https://codereview.chromium.org/2454333002/diff/40001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/40001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1041 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1041: if (m_actionTimer.isActive()) { Do we need to check this? ...
4 years, 1 month ago (2016-11-01 02:18:34 UTC) #7
Dongheun Kang
Dear haraken please check my comment. thanks. https://codereview.chromium.org/2454333002/diff/40001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/40001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1041 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1041: if (m_actionTimer.isActive()) ...
4 years, 1 month ago (2016-11-01 03:32:56 UTC) #8
haraken
On 2016/11/01 03:32:56, Dongheun Kang wrote: > Dear haraken please check my comment. thanks. > ...
4 years, 1 month ago (2016-11-01 03:53:12 UTC) #9
Dongheun Kang
https://codereview.chromium.org/2454333002/diff/40001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/40001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1046 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1046: break; On 2016/11/01 02:18:33, haraken wrote: > > Isn't ...
4 years, 1 month ago (2016-11-01 04:05:37 UTC) #10
Dongheun Kang
Dear all I upload new patch set (#4). please review this patch. thanks.
4 years, 1 month ago (2016-11-01 05:15:07 UTC) #13
haraken
https://codereview.chromium.org/2454333002/diff/60001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/60001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1042 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1042: actionTimerFired(0); If there is a pending task with PendingAction::GenerateRequest, ...
4 years, 1 month ago (2016-11-01 06:28:25 UTC) #15
Dongheun Kang
I rollback to a previous patch. https://codereview.chromium.org/2454333002/diff/60001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/60001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1042 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1042: actionTimerFired(0); On 2016/11/01 ...
4 years, 1 month ago (2016-11-01 06:54:44 UTC) #17
haraken
https://codereview.chromium.org/2454333002/diff/80001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/80001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1045 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1045: break; Sorry, would you explain why we need 'break' ...
4 years, 1 month ago (2016-11-01 06:56:15 UTC) #18
Dongheun Kang
https://codereview.chromium.org/2454333002/diff/80001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/80001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1045 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1045: break; On 2016/11/01 06:56:15, haraken wrote: > > Sorry, ...
4 years, 1 month ago (2016-11-01 07:09:30 UTC) #19
haraken
LGTM Please wait for jrummell or ddorwin's approval. https://codereview.chromium.org/2454333002/diff/80001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp File third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp (right): https://codereview.chromium.org/2454333002/diff/80001/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp#newcode1040 third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:1040: // ...
4 years, 1 month ago (2016-11-01 07:21:38 UTC) #20
Dongheun Kang
Dear jrummell, ddorwin please review this patch. Thanks.
4 years, 1 month ago (2016-11-02 23:10:57 UTC) #21
jrummell
Currently the EME spec states "If a MediaKeySession object becomes inaccessible to the page and ...
4 years, 1 month ago (2016-11-03 18:05:15 UTC) #22
Dongheun Kang
On 2016/11/03 18:05:15, jrummell wrote: > Currently the EME spec states "If a MediaKeySession object ...
4 years, 1 month ago (2016-11-03 18:59:20 UTC) #23
jrummell
On 2016/11/03 18:59:20, Dongheun Kang wrote: > On 2016/11/03 18:05:15, jrummell wrote: > > Currently ...
4 years, 1 month ago (2016-11-03 20:16:00 UTC) #24
Dongheun Kang
On 2016/11/03 20:16:00, jrummell wrote: > On 2016/11/03 18:59:20, Dongheun Kang wrote: > > On ...
4 years, 1 month ago (2016-11-03 21:59:16 UTC) #25
ddorwin
On 2016/11/03 21:59:16, Dongheun Kang wrote: > > This is not to say that the ...
4 years, 1 month ago (2016-11-07 19:54:34 UTC) #26
Dongheun Kang
On 2016/11/07 19:54:34, ddorwin wrote: > On 2016/11/03 21:59:16, Dongheun Kang wrote: > > > ...
4 years, 1 month ago (2016-11-08 23:33:07 UTC) #27
ddorwin
On 2016/11/08 23:33:07, Dongheun Kang wrote: > On 2016/11/07 19:54:34, ddorwin wrote: > > On ...
4 years, 1 month ago (2016-11-09 21:42:25 UTC) #28
jrummell
Now that https://codereview.chromium.org/2484873002/ has landed (which should fix the problem), you can remove the changes ...
4 years, 1 month ago (2016-11-12 00:34:32 UTC) #29
Dongheun Kang
On 2016/11/12 00:34:32, jrummell wrote: > Now that https://codereview.chromium.org/2484873002/ has landed (which should > fix ...
4 years, 1 month ago (2016-11-14 01:52:14 UTC) #32
Dongheun Kang
Dear all please review this layout test patch. Thanks.
4 years, 1 month ago (2016-11-15 00:49:22 UTC) #33
Dongheun Kang
Dear jrummell, ddorwin please review this patch. thanks.
4 years, 1 month ago (2016-11-16 22:35:43 UTC) #34
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/2454333002/100001
4 years ago (2016-11-22 10:07:17 UTC) #37
commit-bot: I haz the power
Failed to apply patch for AUTHORS: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-22 11:00:54 UTC) #39
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/2454333002/120001
4 years ago (2016-11-22 23:43:12 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-11-23 02:30:51 UTC) #46
commit-bot: I haz the power
4 years ago (2016-11-23 02:33:14 UTC) #48
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f6f57160426b548a43d8ebc1b1c70c3796dc7923
Cr-Commit-Position: refs/heads/master@{#434087}

Powered by Google App Engine
This is Rietveld 408576698