This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23618 - Drop "key" prefix from event names
Summary: Drop "key" prefix from event names
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Encrypted Media Extensions (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: David Dorwin
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 20:33 UTC by David Dorwin
Modified: 2013-10-31 18:03 UTC (History)
3 users (show)

See Also:


Attachments

Description David Dorwin 2013-10-23 20:33:05 UTC
All MediaKeySession event names [1] start with "key". I propose that we drop "key" from the name, so that the event names are "error", "message", "ready", etc.

In the original version of EME, the events were fired at the HTMLMediaElement, so we needed to differentiate them from other events. Since the events are now fired at the MediaKeySession object, this is no longer necessary. Also, the references to "key" are not always accurate. For example, the "error" event may not be a problem with any key. In addition, "error" is consistent with the event on other objects and MediaKeySession's "error" attribute

[1] https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#event-summary