<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27739</bug_id>
          
          <creation_ts>2015-01-03 23:33:54 +0000</creation_ts>
          <short_desc>Change event name &apos;keyschange&apos; to &apos;keychange&apos;.</short_desc>
          <delta_ts>2015-01-21 02:15:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Encrypted Media Extensions</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>API_Compatibility</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>27740</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glenn Adams">glenn</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <cc>cpearce</cc>
    
    <cc>ddorwin</cc>
    
    <cc>hsivonen</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116767</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2015-01-03 23:33:54 +0000</bug_when>
    <thetext>Since one doesn&apos;t know whether the key(s) changed are one or many, it would be better to rename &apos;keyschange&apos; to &apos;keychange&apos;. This would also be more consistent with changing &apos;message&apos; to &apos;keymessage&apos; (see bug 27738 [1]).

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=27738</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116901</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-07 21:19:51 +0000</bug_when>
    <thetext>&apos;keychange&apos; might be ambiguous (i.e. key rotation). Perhaps &apos;keystatuschange&apos;, though it&apos;s also possible for this event to be fired when a key is added or removed. I suppose that could be a change in status. Since this is fired when the keyStatuses attribute changes, perhaps it should be &apos;keystatuseschange&apos; (or a similar name based on the discussion in bug 27740).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117103</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-13 22:59:29 +0000</bug_when>
    <thetext>The HTML5 media element spec has the following &quot;change&quot; events [1]:
1. durationchange: The duration attribute has just been updated.
2. ratechange: Either the defaultPlaybackRate or the playbackRate attribute has just been updated.
3. volumechange: Either the volume attribute or the muted attribute has changed. Fired after the relevant attribute&apos;s setter has returned.

The Timed text tracks section defines change and cuechange [2], which do not appear to be related to any specific attributes.

Document&apos;s readystatechange event is fired when the readystate attribute changes [3].

In general, the pattern appears to be &quot;&lt;attribute-name&gt;change&quot; (or &quot;attribute-category-name&quot;). In that case, assuming we keep the attribute name &quot;keyStatuses&quot; as currently proposed in bug 27740, the event name should be &quot;keystatuseschange&quot;. It&apos;s not easy to say, but it is easy to understand.

[1] http://www.w3.org/TR/html5/embedded-content-0.html#mediaevents
[2] http://www.w3.org/TR/html5/embedded-content-0.html#cue-events
[3] Above http://www.w3.org/TR/html5/dom.html#dom-document-readystate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117203</commentid>
    <comment_count>3</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2015-01-15 10:19:10 +0000</bug_when>
    <thetext>Can we please get edits that are about naming things done (or rejected) ASAP so that the names won&apos;t keep changing after implementations have adopted the names? There&apos;s more value in not having vendor prefixes and not having naming churn after shipping than in ending up with perfect names some time in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117365</commentid>
    <comment_count>4</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-21 00:34:50 +0000</bug_when>
    <thetext>In the telecon this morning, we agreed on &quot;keystatuseschange&quot; as proposed in comment 2. I will implement this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117367</commentid>
    <comment_count>5</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-21 00:36:54 +0000</bug_when>
    <thetext>Telecon minutes: http://www.w3.org/2015/01/20-html-media-minutes.html#item02</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117370</commentid>
    <comment_count>6</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-21 02:15:11 +0000</bug_when>
    <thetext>Implemented in https://github.com/w3c/encrypted-media/commit/9f11418745e73fcd5f5dfdfe14608d84a73f3b42</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>