Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Add a progress event at the end of all the caching, so that pr…
…ogress bars complete.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7762

git-svn-id: http://svn.whatwg.org/webapps@4064 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 30, 2009
1 parent ae86e20 commit bd1bb7c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index
Expand Up @@ -53216,6 +53216,20 @@ NETWORK:

</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>
Expand Down
18 changes: 18 additions & 0 deletions source
Expand Up @@ -60186,6 +60186,24 @@ NETWORK:

</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
Expand Down

0 comments on commit bd1bb7c

Please sign in to comment.