<?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>13232</bug_id>
          
          <creation_ts>2011-07-13 18:15:37 +0000</creation_ts>
          <short_desc>I think the section on DedicatedWorkerScope should include information about the kinds of data that postMessage can send to a worker, and the kinds of data that a worker can send back. http://dev.w3.org/html5/workers/#dedicated-workers-and-the-dedicatedwo</short_desc>
          <delta_ts>2011-08-19 20:54:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Web Workers (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>travil</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50968</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-07-13 18:15:37 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/workers/#handler-dedicatedworkerglobalscope-onmessage
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
I think the section on DedicatedWorkerScope should include information about
the kinds of data that postMessage can send to a worker, and the kinds of data
that a worker can send back.

http://dev.w3.org/html5/workers/#dedicated-workers-and-the-dedicatedworkerglob
alscope-interface

For instance: where does it say, you can send numbers, strings, etc. to a
work? JSON? etc. ?? I think that information should be included in this
document. 

Posted from: 174.21.152.161
User agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51495</commentid>
    <comment_count>1</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2011-07-26 17:39:18 +0000</bug_when>
    <thetext>&quot;The postMessage() method on [..] objects must act as if, when invoked, it immediately invoked the method of the same name on the port, with the same arguments, and returned the same return value.&quot;

This should lead the reader to the definition of MessagePort in the Web Messaging spec, but unfortunately, the Web Messaging spec is not referenced by the Web Workers spec ??

Once the reader is looking at Web Messaging, the can discover the structured clone technique for passing data:

&quot;6.Let message clone be the result of obtaining a structured clone of the message argument, with transfer map as the transfer map. If this throws an exception, then throw that exception and abort these steps.&quot;
[http://dev.w3.org/html5/postmsg/#posting-messages]

Of course, then the reader needs to crack the HTML spec itself to find the algorithm.

I think a reference to the Web Messaging spec would be sufficient to resolve this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54392</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-08 20:10:13 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54393</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-08 20:10:28 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6384.
Check-in comment: Give more explanation about how workers work.
http://html5.org/tools/web-apps-tracker?from=6383&amp;to=6384</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>