<?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>25413</bug_id>
          
          <creation_ts>2014-04-22 18:00:41 +0000</creation_ts>
          <short_desc>BroadcastChannel: what&apos;s the use case for MessageEvent.channel</short_desc>
          <delta_ts>2014-04-30 00:04:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonas Sicking (Not reading bugmail)">jonas</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104176</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2014-04-22 18:00:41 +0000</bug_when>
    <thetext>It seems to always be the same as .target when a message is fired at a BroadcastChannel.

The only feature that it seems to provide is the ability to test if a MessageEvent was fired at a broadcast channel, as opposed to a window/worker/messageport/etc. That can be easily accomplished by testing

event.target instanceof BroadcastChannel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104179</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-22 18:22:19 +0000</bug_when>
    <thetext>I guess we could add a &quot;name&quot; attribute to BroadcastChannel and remove &quot;channel&quot; from MessageEvent, sure. Should I go ahead and do that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104190</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2014-04-22 18:33:49 +0000</bug_when>
    <thetext>Please do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104764</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-04-30 00:04:37 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8589.
Check-in comment: Instead of MessageEvent.channel, use MessageEvent.target.name.
http://html5.org/tools/web-apps-tracker?from=8588&amp;to=8589</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>