<?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>27738</bug_id>
          
          <creation_ts>2015-01-03 23:22:39 +0000</creation_ts>
          <short_desc>Need to change name of &apos;message&apos; event to avoid confusion.</short_desc>
          <delta_ts>2015-01-21 00:36:26 +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>WONTFIX</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glenn Adams">glenn</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>annevk</cc>
    
    <cc>cpearce</cc>
    
    <cc>ddorwin</cc>
    
    <cc>hsivonen</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
    
    <cc>slightlyoff</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>116766</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2015-01-03 23:22:39 +0000</bug_when>
    <thetext>HTML5, Server Socket Events (SSE), Web Messages, and WebSockets API all employ a &quot;message&quot; event, with MessageEvent interface type, as defined by [1]. It is bad form, confusing, and potentially ambiguous for EME to redefine &quot;message&quot; as being an entirely different event bound to a MediaKeyMessageEvent. Please change the name to something specific to EME, e.g, &quot;keymessage&quot;.

[1] http://www.w3.org/TR/webmessaging/#event-definitions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116900</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-07 21:16:51 +0000</bug_when>
    <thetext>Is this really a problem for someone that wants to handle the &quot;message&quot; event on a MediaKeySession?

As for potential alternative names, &quot;keymessage&quot; is misleading since it is unlikely to relate to a key. It&apos;s really a session message (redundant because it&apos;s fired at a session object) or message from the CDM (&quot;CDM&quot; is not an app-visible concept).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117102</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-13 22:34:17 +0000</bug_when>
    <thetext>Web MIDI fires [1]:
* Events named &quot;connect&quot; and &quot;disconnect&quot; using the type MIDIConnectionEvent at MIDIAccess objects.
* An event named &quot;disconnect&quot; using the type MIDIConnectionEvent at MIDIPort.
* An event named &quot;midimessage&quot; using the type MIDIMessageEvent at MIDIInput.

The first two are &quot;common&quot; event names with custom event types. The last is a specific event name for a custom event type. Perhaps this is specifically to avoid the issue with MessageEvent, but it seems odd to special case this name and type rather than &quot;scope&quot; all event names using custom types.

[1] Search for &quot;fire &quot; in http://webaudio.github.io/web-midi-api/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117202</commentid>
    <comment_count>3</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2015-01-15 10:18:39 +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>117243</commentid>
    <comment_count>4</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-15 21:39:45 +0000</bug_when>
    <thetext>+Anne and Alex for general platform comments (see comment 2).

I agree with comment 3 - let&apos;s determine whether a change is necessary and move forward. I&apos;ll send an email to the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117268</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-16 08:27:27 +0000</bug_when>
    <thetext>Event types (commonly referred to as the name of an event) are not required to be globally unique. This only goes for event interfaces (nay classes) and even those can be reused by events that signify something else as long as the objects they are dispatched on are different. 

(And I would argue, as long as those objects have no relationship. E.g. we wouldn&apos;t want Text and Element nodes to use a &quot;foo&quot; event with a &quot;FooEvent&quot; interface for completely different reasons.)

So I don&apos;t really see a problem here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117364</commentid>
    <comment_count>6</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-21 00:34:03 +0000</bug_when>
    <thetext>Per comment 5, this is not a problem. As agreed in the telecon today, we will keep the name &apos;message&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117366</commentid>
    <comment_count>7</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-21 00:36:26 +0000</bug_when>
    <thetext>Telecon minutes: http://www.w3.org/2015/01/20-html-media-minutes.html#item01</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>