<?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>27209</bug_id>
          
          <creation_ts>2014-10-31 13:21:37 +0000</creation_ts>
          <short_desc>&quot;Create an event that uses the MessageEvent interface&quot; Why not set the source for a message event in a MessageChannel?</short_desc>
          <delta_ts>2014-11-06 08:31:14 +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>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#transferMessagePort</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <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>114319</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-10-31 13:21:37 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/comms.html
Multipage: https://html.spec.whatwg.org/multipage/#transferMessagePort
Complete: https://html.spec.whatwg.org/#transferMessagePort
Referrer: 

Comment:
&quot;Create an event that uses the MessageEvent interface&quot; Why not set the source
for a message event in a MessageChannel?

Posted from: 46.127.136.57 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114466</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-04 00:36:08 +0000</bug_when>
    <thetext>Can you elaborate? Set it to what? Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114474</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-04 08:45:54 +0000</bug_when>
    <thetext>To the source port. Checking with baku if that&apos;s really necessary; looking at it closer it seems that if you have a port you have both onmessage and postMessage available, and no real need for e.source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114477</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-04 10:35:12 +0000</bug_when>
    <thetext>baku&apos;s argument is that since we know the source we should just set it to that, even if it&apos;s redundant with e.target.

(Not sure, but perhaps this will make it slightly easier to write consistent message handling code?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114575</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-06 00:41:12 +0000</bug_when>
    <thetext>The source of a message is the object on which postMessage() was called. That might be in a different worker. We don&apos;t want the behaviour to be different based on whether the source is in the same worker or not, since that can hurt later refactoring into multiple workers, which we generally want to encourage.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>