html5/workers Overview.html,1.5,1.6

Update of /sources/public/html5/workers
In directory hutz:/tmp/cvs-serv29541

Modified Files:
	Overview.html 
Log Message:
Workers can be named. (whatwg r8)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/workers/Overview.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Overview.html	16 Jul 2008 01:46:20 -0000	1.5
+++ Overview.html	16 Jul 2008 01:52:35 -0000	1.6
@@ -376,6 +376,7 @@
 
   <pre
    class=idl>[NoInterfaceObject] interface <dfn id=windowworker>WindowWorker</dfn> {
+  readonly attribute boolean <a href="#name" title=dom-windowworker-name>name</a>;
   readonly attribute boolean <a href="#closing" title=dom-windowworker-closing>closing</a>;
 };</pre>
 
@@ -386,6 +387,11 @@
    href="#windowworkercreators">WindowWorkerCreators</a></code> interfaces)
    and the <code>EventTarget</code> interface.
 
+  <p>The <dfn id=name title=dom-windowworker-name><code>name</code></dfn>
+   attribute must return the value it was assigned when the <code><a
+   href="#windowworker">WindowWorker</a></code> object was created by the "<a
+   href="#run-a">run a worker</a>" algorithm.
+
   <p>The <dfn id=closing
    title=dom-windowworker-closing><code>closing</code></dfn> attribute must
    return false until the "<a href="#kill-a">kill a worker</a>" processing
@@ -401,11 +407,12 @@
 
   <h3 id=processing><span class=secno>2.3 </span>Processing model</h3>
 
-  <p>When a user agent is to <dfn id=run-a>run a worker</dfn> for a script
-   <var title="">script</var> and a browsing context <var title="">owner
-   browsing context</var> and a <code>Document</code> <var title="">owner
-   document</var>, it must run the following steps in a completely separate
-   and parallel execution environment:
+  <p>When a user agent is to <dfn id=run-a>run a worker</dfn> named <var
+   title="">name</var> for a script <var title="">script</var>, a browsing
+   context <var title="">owner browsing context</var> and a
+   <code>Document</code> <var title="">owner document</var>, it must run the
+   following steps in a completely separate and parallel execution
+   environment:
 
   <ol>
    <li>
@@ -413,6 +420,11 @@
      object, <var title="">window</var>.</p>
 
    <li>
+    <p>Set the <code title=dom-windowworker-name><a
+     href="#name">name</a></code> attribute of <var title="">window</var> to
+     the value of <var title="">name</var>.</p>
+
+   <li>
     <p>Let <var title="">script</var>'s <span>script execution context</span>
      (and thus also <span>global object</span>) be <var
      title="">window</var>.</p>

Received on Wednesday, 16 July 2008 01:53:12 UTC