- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 27 Aug 2008 09:49:11 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/workers In directory hutz:/tmp/cvs-serv17893 Modified Files: Overview.html Log Message: Make postMessage() return void. (credit: js) (whatwg r58) Index: Overview.html =================================================================== RCS file: /sources/public/html5/workers/Overview.html,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- Overview.html 27 Aug 2008 07:06:58 -0000 1.50 +++ Overview.html 27 Aug 2008 09:49:09 -0000 1.51 @@ -1311,8 +1311,8 @@ <pre class=idl>[NoInterfaceObject] interface <dfn id=dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</dfn> : <a href="#workerglobalscope">WorkerGlobalScope</a> { - boolean <a href="#postmessage" title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in DOMString message); - boolean <a href="#postmessage" title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in DOMString message, in <span>MessagePort</span> messagePort); + void <a href="#postmessage" title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in DOMString message); + void <a href="#postmessage" title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in DOMString message, in <span>MessagePort</span> messagePort); <span>MessagePort</span> <a href="#startconversation" title=dom-DedicatedWorkerGlobalScope-startConversation>startConversation</a>(in DOMString message); attribute <span>EventListener</span> <a href="#onmessage" title=handler-DedicatedWorkerGlobalScope-onmessage>onmessage</a>; };</pre> @@ -1338,7 +1338,8 @@ methods on <code><a href="#dedicatedworkerglobalscope">DedicatedWorkerGlobalScope</a></code> objects must act as if, when invoked, they immediately invoked the method - of the same name on the port, with the same arguments. + of the same name on the port, with the same arguments, and returned the + same return value. <p>The following are the <span>event handler DOM attributes</span> that must be supported by objects implementing the <code><a @@ -1771,8 +1772,8 @@ interface <dfn id=worker1>Worker</dfn> : <a href="#abstractworker">AbstractWorker</a> { void <a href="#close0" title=dom-Worker-close>close</a>(); - boolean <a href="#postmessage0" title=dom-Worker-postMessage>postMessage</a>(in DOMString message); - boolean <a href="#postmessage0" title=dom-Worker-postMessage>postMessage</a>(in DOMString message, in <span>MessagePort</span> messagePort); + void <a href="#postmessage0" title=dom-Worker-postMessage>postMessage</a>(in DOMString message); + void <a href="#postmessage0" title=dom-Worker-postMessage>postMessage</a>(in DOMString message, in <span>MessagePort</span> messagePort); <span>MessagePort</span> <a href="#startconversation0" title=dom-Worker-startConversation>startConversation</a>(in DOMString message); attribute <span>EventListener</span> <a href="#onmessage0" title=handler-Worker-onmessage>onmessage</a>; };</pre> @@ -1797,7 +1798,7 @@ title=dom-Worker-startConversation><code>startConversation()</code></dfn> methods on <code><a href="#worker1">Worker</a></code> objects must act as if, when invoked, they immediately invoked the method of the same name on - the port, with the same arguments. + the port, with the same arguments, and returned the same return value. <p>The following are the <span>event handler DOM attributes</span> that must be supported by objects implementing the <code><a @@ -1875,6 +1876,10 @@ queue</span>. <li> + <p>Open <var title="">outside port</var>'s <span>port message + queue</span>. + + <li> <p>In a parallel execution context (i.e. a separate thread or process or equivalent construct), <a href="#run-a">run a worker</a>, with the <span>script browsing context</span> of the script that invoked the
Received on Wednesday, 27 August 2008 09:49:46 UTC