Short URL: http://html5.org/r/5715
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 5715 | 2010-12-08 22:04 |
Index: source =================================================================== --- source (revision 5714) +++ source (revision 5715) @@ -72112,16 +72112,34 @@ <p>Some of the algorithms in this specification, for historical reasons, require the user agent to <dfn>pause</dfn> while running a - <span title="concept-task">task</span> until some condition has been - met. While a user agent has a paused <span - title="concept-task">task</span>, the corresponding <span>event - loop</span> must not run further <span - title="concept-task">tasks</span>, and any script in the currently - running <span title="concept-task">task</span> must block. User - agents should remain responsive to user input while paused, however, - albeit in a reduced capacity since the <span>event loop</span> will - not be doing anything.</p> + <span title="concept-task">task</span> until a condition <var + title="">goal</var> is met. This means running the following + steps:</p> + <ol> + + <li><p>If any asynchronously-running algorithms are <span + title="await a stable state">awaiting a stable state</span>, then + run their <span>synchronous section</span> and then resume running + their asynchronous algorithm. (See the <span>event loop</span> + processing model definition above for details.)</p> + + <li><p>If necessary, update the rendering or user interface of any + <code>Document</code> or <span>browsing context</span> to reflect + the current state.</p></li> + + <li><p>Wait until the condition <var title="">goal</var> is met. + While a user agent has a paused <span + title="concept-task">task</span>, the corresponding <span>event + loop</span> must not run further <span + title="concept-task">tasks</span>, and any script in the currently + running <span title="concept-task">task</span> must block. User + agents should remain responsive to user input while paused, + however, albeit in a reduced capacity since the <span>event + loop</span> will not be doing anything.</p></li> + + </ol> + <hr> <p>When a user agent is to <dfn>obtain the storage mutex</dfn> as