W3C home > Mailing lists > Public > public-html-commits@w3.org > August 2008

html5/workers Overview.html,1.45,1.46

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 08 Aug 2008 05:50:08 +0000
To: public-html-commits@w3.org
Message-Id: <E1KRKrY-0006TP-Py@lionel-hutz.w3.org>

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

Modified Files:
	Overview.html 
Log Message:
Make importScripts() throw on network error. (whatwg r53)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/workers/Overview.html,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- Overview.html	8 Aug 2008 05:26:43 -0000	1.45
+++ Overview.html	8 Aug 2008 05:50:06 -0000	1.46
@@ -1667,7 +1667,7 @@
 
   <pre
    class=idl>[NoInterfaceObject] interface <dfn id=workerutils>WorkerUtils</dfn> {
-  boolean <a href="#importscripts" title=dom-WorkerGlobalScope-importScripts>importScripts</a>([Variadic] in DOMString urls);
+  void <a href="#importscripts" title=dom-WorkerGlobalScope-importScripts>importScripts</a>([Variadic] in DOMString urls);
   readonly attribute <span>Storage</span> <a href="#localstorage" title=dom-localStorage>localStorage</a>;
   <span>Database</span> <a href="#opendatabase" title=dom-opendatabase>openDatabase</a>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
   void <a href="#shownotification" title=dom-showNotification>showNotification</a>(in DOMString title, in DOMString subtitle, in DOMString description);
@@ -1704,6 +1704,10 @@
 
   <ol>
    <li>
+    <p>If there are no arguments, return without doing anything. Abort these
+     steps.
+
+   <li>
     <p><span title="resolve a url">Resolve</span> each argument.
 
    <li>
@@ -1728,8 +1732,8 @@
       <p>Wait for the fetching attempt for the corresponding resource to
        complete.</p>
 
-      <p>If the fetching attempt failed, return false and abort all these
-       steps.</p>
+      <p>If the fetching attempt failed, throw a <code>NETWORK_ERR</code>
+       exception and abort all these steps.</p>
 
       <p>If the fetching attempt succeeded, then let <var
        title="">script</var> be the resource that was obtained.</p>
@@ -1757,12 +1761,8 @@
        href="#importscripts">importScripts()</a></code> method.</p>
 
       <p>If the "<a href="#kill-a">kill a worker</a>" algorithm aborts the
-       script then abort all these steps (the return value is
-       inconsequential).</p>
+       script then abort all these steps.</p>
     </ol>
-
-   <li>
-    <p>Return true.
   </ol>
 
   <h3 id=apis-defined><span class=secno>3.2 </span>APIs defined in other
Received on Friday, 8 August 2008 05:50:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:58 GMT