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

Issue 124253003: Update MediaKeySession events to match latest EME spec (Closed)

Created:
6 years, 11 months ago by jrummell
Modified:
6 years, 11 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, dglazkov+blink, philipj_slow, jamesr, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Update MediaKeySession events to match latest EME spec The current prefixed event names used (e.g. webkitkeymessage, etc.) don't match the event names in the latest EME spec, so this change updates them. Also add new event 'close', which wasn't specified in earlier versions of the spec. BUG=224786 TEST=content_shell tests updated with new event names (and pass) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165023

Patch Set 1 #

Total comments: 16

Patch Set 2 : Remove onevent #

Total comments: 3

Patch Set 3 : closed event now close #

Total comments: 3

Patch Set 4 : rebase to 164896 #

Patch Set 5 : Rename closed() to close() #

Total comments: 4

Patch Set 6 : Rename javascript #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -53 lines) Patch
M LayoutTests/media/encrypted-media/encrypted-media-v2-events.html View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-v2-events-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 1 2 1 chunk +1 line, -0 lines 2 comments Download
M Source/modules/encryptedmedia/MediaKeySession.h View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 3 4 2 chunks +25 lines, -18 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.idl View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M Source/platform/drm/ContentDecryptionModuleSession.h View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M Source/platform/drm/ContentDecryptionModuleSession.cpp View 1 2 3 4 1 chunk +11 lines, -6 lines 0 comments Download
M public/platform/WebContentDecryptionModuleSession.h View 1 2 3 4 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jrummell
PTAL.
6 years, 11 months ago (2014-01-03 23:27:41 UTC) #1
xhwang
Thanks! acolwell: Please see my question about the "webkit" prefix. https://codereview.chromium.org/124253003/diff/1/Source/modules/encryptedmedia/MediaKeySession.idl File Source/modules/encryptedmedia/MediaKeySession.idl (left): https://codereview.chromium.org/124253003/diff/1/Source/modules/encryptedmedia/MediaKeySession.idl#oldcode41 ...
6 years, 11 months ago (2014-01-03 23:38:20 UTC) #2
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/124253003/diff/1/Source/modules/encryptedmedia/MediaKeySession.idl File Source/modules/encryptedmedia/MediaKeySession.idl (left): https://codereview.chromium.org/124253003/diff/1/Source/modules/encryptedmedia/MediaKeySession.idl#oldcode41 Source/modules/encryptedmedia/MediaKeySession.idl:41: [RuntimeEnabled=EncryptedMedia] attribute EventHandler onwebkitkeyadded; On 2014/01/03 23:38:20, xhwang wrote: ...
6 years, 11 months ago (2014-01-06 20:34:10 UTC) #3
ddorwin
https://codereview.chromium.org/124253003/diff/1/Source/core/events/EventTypeNames.in File Source/core/events/EventTypeNames.in (right): https://codereview.chromium.org/124253003/diff/1/Source/core/events/EventTypeNames.in#newcode48 Source/core/events/EventTypeNames.in:48: closed Or maybe not... This change inspired https://www.w3.org/Bugs/Public/show_bug.cgi?id=24227. :) ...
6 years, 11 months ago (2014-01-07 23:44:41 UTC) #4
jrummell
Updated. PTAL. https://codereview.chromium.org/124253003/diff/1/Source/modules/encryptedmedia/MediaKeySession.h File Source/modules/encryptedmedia/MediaKeySession.h (right): https://codereview.chromium.org/124253003/diff/1/Source/modules/encryptedmedia/MediaKeySession.h#newcode73 Source/modules/encryptedmedia/MediaKeySession.h:73: DEFINE_ATTRIBUTE_EVENT_LISTENER(error); On 2014/01/07 23:44:41, ddorwin wrote: > ...
6 years, 11 months ago (2014-01-08 18:05:51 UTC) #5
ddorwin
lgtm
6 years, 11 months ago (2014-01-08 18:12:16 UTC) #6
xhwang
lgtm % one comment ddorwin@: See the comment. https://codereview.chromium.org/124253003/diff/210001/Source/core/events/EventTypeNames.in File Source/core/events/EventTypeNames.in (right): https://codereview.chromium.org/124253003/diff/210001/Source/core/events/EventTypeNames.in#newcode48 Source/core/events/EventTypeNames.in:48: closed ...
6 years, 11 months ago (2014-01-09 01:16:20 UTC) #7
ddorwin
https://codereview.chromium.org/124253003/diff/210001/Source/core/events/EventTypeNames.in File Source/core/events/EventTypeNames.in (right): https://codereview.chromium.org/124253003/diff/210001/Source/core/events/EventTypeNames.in#newcode48 Source/core/events/EventTypeNames.in:48: closed On 2014/01/09 01:16:21, xhwang wrote: > Probably we'll ...
6 years, 11 months ago (2014-01-09 01:37:10 UTC) #8
jrummell
Renamed 'closed' event to 'close'.
6 years, 11 months ago (2014-01-09 18:23:10 UTC) #9
xhwang
https://codereview.chromium.org/124253003/diff/340001/Source/platform/drm/ContentDecryptionModuleSession.h File Source/platform/drm/ContentDecryptionModuleSession.h (right): https://codereview.chromium.org/124253003/diff/340001/Source/platform/drm/ContentDecryptionModuleSession.h#newcode57 Source/platform/drm/ContentDecryptionModuleSession.h:57: virtual void closed() = 0; After https://codereview.chromium.org/111043004/ is landed, ...
6 years, 11 months ago (2014-01-10 19:30:57 UTC) #10
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/124253003/diff/340001/Source/platform/drm/ContentDecryptionModuleSession.h File Source/platform/drm/ContentDecryptionModuleSession.h (right): https://codereview.chromium.org/124253003/diff/340001/Source/platform/drm/ContentDecryptionModuleSession.h#newcode57 Source/platform/drm/ContentDecryptionModuleSession.h:57: virtual void closed() = 0; On 2014/01/10 19:30:57, ...
6 years, 11 months ago (2014-01-10 20:43:10 UTC) #11
jrummell
Renamed closed() to close(). xhwang@ please do a final review before I add blink owners. ...
6 years, 11 months ago (2014-01-10 22:18:21 UTC) #12
xhwang
lgtm % nit on the test https://codereview.chromium.org/124253003/diff/530001/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html File LayoutTests/media/encrypted-media/encrypted-media-v2-events.html (right): https://codereview.chromium.org/124253003/diff/530001/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html#newcode31 LayoutTests/media/encrypted-media/encrypted-media-v2-events.html:31: function keyMessage(event) Shall ...
6 years, 11 months ago (2014-01-10 22:25:18 UTC) #13
jrummell
+abarth for OWNERS review of source/platform and public/platform https://codereview.chromium.org/124253003/diff/530001/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html File LayoutTests/media/encrypted-media/encrypted-media-v2-events.html (right): https://codereview.chromium.org/124253003/diff/530001/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html#newcode31 LayoutTests/media/encrypted-media/encrypted-media-v2-events.html:31: function ...
6 years, 11 months ago (2014-01-10 22:52:57 UTC) #14
abarth-chromium
lgtm https://codereview.chromium.org/124253003/diff/430002/Source/core/events/EventTypeNames.in File Source/core/events/EventTypeNames.in (right): https://codereview.chromium.org/124253003/diff/430002/Source/core/events/EventTypeNames.in#newcode209 Source/core/events/EventTypeNames.in:209: webkitkeymessage Can we remove some of these prefixed ...
6 years, 11 months ago (2014-01-13 23:07:08 UTC) #15
jrummell
Thanks for the reviews. https://codereview.chromium.org/124253003/diff/430002/Source/core/events/EventTypeNames.in File Source/core/events/EventTypeNames.in (right): https://codereview.chromium.org/124253003/diff/430002/Source/core/events/EventTypeNames.in#newcode209 Source/core/events/EventTypeNames.in:209: webkitkeymessage On 2014/01/13 23:07:08, abarth ...
6 years, 11 months ago (2014-01-13 23:09:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/124253003/430002
6 years, 11 months ago (2014-01-13 23:10:22 UTC) #17
commit-bot: I haz the power
Change committed as 165023
6 years, 11 months ago (2014-01-14 04:27:17 UTC) #18
ddorwin
6 years, 11 months ago (2014-01-23 18:55:03 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/124253003/diff/210001/Source/core/events/Even...
File Source/core/events/EventTypeNames.in (right):

https://codereview.chromium.org/124253003/diff/210001/Source/core/events/Even...
Source/core/events/EventTypeNames.in:48: closed
On 2014/01/09 01:37:10, ddorwin wrote:
> On 2014/01/09 01:16:21, xhwang wrote:
> > Probably we'll rename the event to "close" very soon. Shall we just do it in
> > this CL?
> > 
> > +ddorwin
> 
> Probably. Better to add later than add and remove?

FTR, the spec has been updated to "close":
https://dvcs.w3.org/hg/html-media/rev/413d03f8655c
No changes necessary since we used "close".

Powered by Google App Engine
This is Rietveld 408576698