[html5] r4064 - [] (0) Add a progress event at the end of all the caching, so that progress bars [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Sep 30 03:13:45 PDT 2009


Author: ianh
Date: 2009-09-30 03:13:44 -0700 (Wed, 30 Sep 2009)
New Revision: 4064

Modified:
   index
   source
Log:
[] (0) Add a progress event at the end of all the caching, so that progress bars complete.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7762

Modified: index
===================================================================
--- index	2009-09-30 10:05:47 UTC (rev 4063)
+++ index	2009-09-30 10:13:44 UTC (rev 4064)
@@ -53216,6 +53216,20 @@
 
     </ol></li>
 
+   <li><p>For each <a href=#cache-host>cache host</a> associated with an
+   <a href=#application-cache>application cache</a> in <var title="">cache group</var>,
+   <a href=#queue-a-task>queue a task</a> to fire an event with the name <code title=event-appcache-progress><a href=#event-appcache-progress>progress</a></code>, with no namespace,
+   which does not bubble, which is cancelable, and which uses the
+   <code>ProgressEvent</code> interface, at the
+   <code><a href=#applicationcache>ApplicationCache</a></code> singleton of the <a href=#cache-host>cache
+   host</a>. The <code title=dom-ProgressEvents-lengthComputable>lengthComputable</code>
+   attribute must be set to true, the <code title=dom-ProgressEvents-total>total</code> and the <code title=dom-ProgressEvents-loaded>loaded</code> attributes must be
+   set to the number of number of files in <var title="">file
+   list</var>. The default action of these events must be, if the user
+   agent <a href=#shows-caching-progress>shows caching progress</a>, the display of some sort
+   of user interface indicating to the user that all the files have
+   been downloaded.</li>
+
    <li><p>Store the list of <a href=#concept-appcache-fallback-ns title=concept-appcache-fallback-ns>fallback namespaces</a>,
    and the URLs of the <a href=#concept-appcache-fallback title=concept-appcache-fallback>fallback entries</a> that they
    map to, in <var title="">new cache</var>.</li>

Modified: source
===================================================================
--- source	2009-09-30 10:05:47 UTC (rev 4063)
+++ source	2009-09-30 10:13:44 UTC (rev 4064)
@@ -60186,6 +60186,24 @@
 
    </li>
 
+   <li><p>For each <span>cache host</span> associated with an
+   <span>application cache</span> in <var title="">cache group</var>,
+   <span>queue a task</span> to fire an event with the name <code
+   title="event-appcache-progress">progress</code>, with no namespace,
+   which does not bubble, which is cancelable, and which uses the
+   <code>ProgressEvent</code> interface, at the
+   <code>ApplicationCache</code> singleton of the <span>cache
+   host</span>. The <code
+   title="dom-ProgressEvents-lengthComputable">lengthComputable</code>
+   attribute must be set to true, the <code
+   title="dom-ProgressEvents-total">total</code> and the <code
+   title="dom-ProgressEvents-loaded">loaded</code> attributes must be
+   set to the number of number of files in <var title="">file
+   list</var>. The default action of these events must be, if the user
+   agent <span>shows caching progress</span>, the display of some sort
+   of user interface indicating to the user that all the files have
+   been downloaded.</p></li>
+
    <li><p>Store the list of <span
    title="concept-appcache-fallback-ns">fallback namespaces</span>,
    and the URLs of the <span




More information about the Commit-Watchers mailing list