[html5] r6581 - [giow] (1) These steps are already running in a task, not async, so no need to h [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Sep 23 15:20:33 PDT 2011
Author: ianh
Date: 2011-09-23 15:20:31 -0700 (Fri, 23 Sep 2011)
New Revision: 6581
Modified:
complete.html
index
source
Log:
[giow] (1) These steps are already running in a task, not async, so no need to have them queue more tasks to fire events.
Modified: complete.html
===================================================================
--- complete.html 2011-09-23 22:18:18 UTC (rev 6580)
+++ complete.html 2011-09-23 22:20:31 UTC (rev 6581)
@@ -27500,19 +27500,16 @@
<dd>
- <p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
- named <code title=event-media-progress><a href=#event-media-progress>progress</a></code> at the
- <a href=#media-element>media element</a>.</p>
+ <p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-progress><a href=#event-media-progress>progress</a></code> at the <a href=#media-element>media
+ element</a>.</p>
- <p>Then, <a href=#queue-a-task>queue a task</a> to set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> and
+ <p>Set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> and
<a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-suspend><a href=#event-media-suspend>suspend</a></code> at the <a href=#media-element>media
element</a>.</p>
<p>If the user agent ever discards any <a href=#media-data>media data</a>
and then needs to resume the network activity to obtain it
- again, then it must wait <a href=#queue-a-task>queue a task</a> to set the
- <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to
- <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code>.</p>
+ again, then it must <a href=#queue-a-task>queue a task</a> to set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code>.</p>
<p class=note>If the user agent can keep the <a href=#media-resource>media
resource</a> loaded, then the algorithm will continue to its
@@ -27542,9 +27539,8 @@
attribute to a new <code><a href=#mediaerror>MediaError</a></code> object whose <code title=dom-MediaError-code><a href=#dom-mediaerror-code>code</a></code> attribute is set to
<code title=dom-MediaError-MEDIA_ERR_NETWORK><a href=#dom-mediaerror-media_err_network>MEDIA_ERR_NETWORK</a></code>.</li>
- <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
- at the <a href=#media-element>media element</a>.</li>
+ <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code> at the <a href=#media-element>media
+ element</a>.</li>
<li><p>Set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
@@ -27576,17 +27572,15 @@
attribute to a new <code><a href=#mediaerror>MediaError</a></code> object whose <code title=dom-MediaError-code><a href=#dom-mediaerror-code>code</a></code> attribute is set to
<code title=dom-MediaError-MEDIA_ERR_DECODE><a href=#dom-mediaerror-media_err_decode>MEDIA_ERR_DECODE</a></code>.</li>
- <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
- at the <a href=#media-element>media element</a>.</li>
+ <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code> at the <a href=#media-element>media
+ element</a>.</li>
<li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
- value and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
- at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+ value and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
+ Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
value.</li>
@@ -27619,17 +27613,15 @@
attribute to a new <code><a href=#mediaerror>MediaError</a></code> object whose <code title=dom-MediaError-code><a href=#dom-mediaerror-code>code</a></code> attribute is set to
<code title=dom-MediaError-MEDIA_ERR_ABORTED><a href=#dom-mediaerror-media_err_aborted>MEDIA_ERR_ABORTED</a></code>.</li>
- <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code>
- at the <a href=#media-element>media element</a>.</li>
+ <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at the <a href=#media-element>media
+ element</a>.</li>
<li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
- value and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
- at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+ value and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
+ Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
value.</li>
@@ -27660,14 +27652,17 @@
</dd>
- <dt id=found-a-media-resource-specific-timed-track>If the <a href=#media-resource>media resource</a> is found to declare a <a href=#media-resource-specific-text-track>media-resource-specific text track</a> that the user agent supports</dt>
+ <dt id=found-a-media-resource-specific-timed-track>If the
+ <a href=#media-resource>media resource</a> is found to declare a
+ <a href=#media-resource-specific-text-track>media-resource-specific text track</a> that the user
+ agent supports</dt>
<dd>
<p>If the <a href=#media-data>media data</a> is
- <a href=#cors-same-origin>CORS-same-origin</a>, <a href=#queue-a-task>queue a task</a> to run
- the <a href=#steps-to-expose-a-media-resource-specific-text-track>steps to expose a media-resource-specific text
- track</a> with the relevant data.</p>
+ <a href=#cors-same-origin>CORS-same-origin</a>, run the <a href=#steps-to-expose-a-media-resource-specific-text-track>steps to expose a
+ media-resource-specific text track</a> with the relevant
+ data.</p>
<p class=note>Cross-origin videos do not expose their
subtitles, since that would allow attacks such as hostile sites
@@ -27694,7 +27689,7 @@
even once the <a href=#ended-playback title="ended playback">playback has
ended</a>, because there is always the chance the user will
seek back to the start. In fact, in this situation, once <a href=#ended-playback title="ended playback">playback has ended</a>, the user agent
- will end up firing a <code title=event-media-stalled><a href=#event-media-stalled>stalled</a></code> event, as described
+ will end up firing a <code title=event-media-suspend><a href=#event-media-suspend>suspend</a></code> event, as described
earlier.</p>
</li>
Modified: index
===================================================================
--- index 2011-09-23 22:18:18 UTC (rev 6580)
+++ index 2011-09-23 22:20:31 UTC (rev 6581)
@@ -27367,19 +27367,16 @@
<dd>
- <p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
- named <code title=event-media-progress><a href=#event-media-progress>progress</a></code> at the
- <a href=#media-element>media element</a>.</p>
+ <p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-progress><a href=#event-media-progress>progress</a></code> at the <a href=#media-element>media
+ element</a>.</p>
- <p>Then, <a href=#queue-a-task>queue a task</a> to set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> and
+ <p>Set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> and
<a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-suspend><a href=#event-media-suspend>suspend</a></code> at the <a href=#media-element>media
element</a>.</p>
<p>If the user agent ever discards any <a href=#media-data>media data</a>
and then needs to resume the network activity to obtain it
- again, then it must wait <a href=#queue-a-task>queue a task</a> to set the
- <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to
- <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code>.</p>
+ again, then it must <a href=#queue-a-task>queue a task</a> to set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code>.</p>
<p class=note>If the user agent can keep the <a href=#media-resource>media
resource</a> loaded, then the algorithm will continue to its
@@ -27409,9 +27406,8 @@
attribute to a new <code><a href=#mediaerror>MediaError</a></code> object whose <code title=dom-MediaError-code><a href=#dom-mediaerror-code>code</a></code> attribute is set to
<code title=dom-MediaError-MEDIA_ERR_NETWORK><a href=#dom-mediaerror-media_err_network>MEDIA_ERR_NETWORK</a></code>.</li>
- <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
- at the <a href=#media-element>media element</a>.</li>
+ <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code> at the <a href=#media-element>media
+ element</a>.</li>
<li><p>Set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
@@ -27443,17 +27439,15 @@
attribute to a new <code><a href=#mediaerror>MediaError</a></code> object whose <code title=dom-MediaError-code><a href=#dom-mediaerror-code>code</a></code> attribute is set to
<code title=dom-MediaError-MEDIA_ERR_DECODE><a href=#dom-mediaerror-media_err_decode>MEDIA_ERR_DECODE</a></code>.</li>
- <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
- at the <a href=#media-element>media element</a>.</li>
+ <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code> at the <a href=#media-element>media
+ element</a>.</li>
<li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
- value and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
- at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+ value and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
+ Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
value.</li>
@@ -27486,17 +27480,15 @@
attribute to a new <code><a href=#mediaerror>MediaError</a></code> object whose <code title=dom-MediaError-code><a href=#dom-mediaerror-code>code</a></code> attribute is set to
<code title=dom-MediaError-MEDIA_ERR_ABORTED><a href=#dom-mediaerror-media_err_aborted>MEDIA_ERR_ABORTED</a></code>.</li>
- <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code>
- at the <a href=#media-element>media element</a>.</li>
+ <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at the <a href=#media-element>media
+ element</a>.</li>
<li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
- value and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
- event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
- at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+ value and <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the element.
+ Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
value.</li>
@@ -27527,14 +27519,17 @@
</dd>
- <dt id=found-a-media-resource-specific-timed-track>If the <a href=#media-resource>media resource</a> is found to declare a <a href=#media-resource-specific-text-track>media-resource-specific text track</a> that the user agent supports</dt>
+ <dt id=found-a-media-resource-specific-timed-track>If the
+ <a href=#media-resource>media resource</a> is found to declare a
+ <a href=#media-resource-specific-text-track>media-resource-specific text track</a> that the user
+ agent supports</dt>
<dd>
<p>If the <a href=#media-data>media data</a> is
- <a href=#cors-same-origin>CORS-same-origin</a>, <a href=#queue-a-task>queue a task</a> to run
- the <a href=#steps-to-expose-a-media-resource-specific-text-track>steps to expose a media-resource-specific text
- track</a> with the relevant data.</p>
+ <a href=#cors-same-origin>CORS-same-origin</a>, run the <a href=#steps-to-expose-a-media-resource-specific-text-track>steps to expose a
+ media-resource-specific text track</a> with the relevant
+ data.</p>
<p class=note>Cross-origin videos do not expose their
subtitles, since that would allow attacks such as hostile sites
@@ -27561,7 +27556,7 @@
even once the <a href=#ended-playback title="ended playback">playback has
ended</a>, because there is always the chance the user will
seek back to the start. In fact, in this situation, once <a href=#ended-playback title="ended playback">playback has ended</a>, the user agent
- will end up firing a <code title=event-media-stalled><a href=#event-media-stalled>stalled</a></code> event, as described
+ will end up firing a <code title=event-media-suspend><a href=#event-media-suspend>suspend</a></code> event, as described
earlier.</p>
</li>
Modified: source
===================================================================
--- source 2011-09-23 22:18:18 UTC (rev 6580)
+++ source 2011-09-23 22:20:31 UTC (rev 6581)
@@ -29733,11 +29733,11 @@
<dd>
- <p><span>Queue a task</span> to <span>fire a simple event</span>
- named <code title="event-media-progress">progress</code> at the
- <span>media element</span>.</p>
+ <p><span>Fire a simple event</span> named <code
+ title="event-media-progress">progress</code> at the <span>media
+ element</span>.</p>
- <p>Then, <span>queue a task</span> to set the <code
+ <p>Set the <code
title="dom-media-networkState">networkState</code> to <code
title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> and
<span>fire a simple event</span> named <code
@@ -29746,9 +29746,8 @@
<p>If the user agent ever discards any <span>media data</span>
and then needs to resume the network activity to obtain it
- again, then it must wait <span>queue a task</span> to set the
- <code title="dom-media-networkState">networkState</code> to
- <code
+ again, then it must <span>queue a task</span> to set the <code
+ title="dom-media-networkState">networkState</code> to <code
title="dom-media-NETWORK_LOADING">NETWORK_LOADING</code>.</p>
<p class="note">If the user agent can keep the <span>media
@@ -29784,9 +29783,9 @@
<code
title="dom-MediaError-MEDIA_ERR_NETWORK">MEDIA_ERR_NETWORK</code>.</p></li>
- <li><p><span>Queue a task</span> to <span>fire a simple
- event</span> named <code title="event-media-error">error</code>
- at the <span>media element</span>.</p></li>
+ <li><p><span>Fire a simple event</span> named <code
+ title="event-media-error">error</code> at the <span>media
+ element</span>.</p></li>
<li><p>Set the element's <code
title="dom-media-networkState">networkState</code> attribute to
@@ -29827,9 +29826,9 @@
<code
title="dom-MediaError-MEDIA_ERR_DECODE">MEDIA_ERR_DECODE</code>.</p></li>
- <li><p><span>Queue a task</span> to <span>fire a simple
- event</span> named <code title="event-media-error">error</code>
- at the <span>media element</span>.</p></li>
+ <li><p><span>Fire a simple event</span> named <code
+ title="event-media-error">error</code> at the <span>media
+ element</span>.</p></li>
<li><p>If the <span>media element</span>'s <code
title="dom-media-readyState">readyState</code> attribute has a
@@ -29838,9 +29837,9 @@
element's <code
title="dom-media-networkState">networkState</code> attribute to
the <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code>
- value and <span>queue a task</span> to <span>fire a simple
- event</span> named <code title="event-media-emptied">emptied</code>
- at the element. Otherwise, set the element's <code
+ value and <span>fire a simple event</span> named <code
+ title="event-media-emptied">emptied</code> at the element.
+ Otherwise, set the element's <code
title="dom-media-networkState">networkState</code> attribute to
the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>
value.</p></li>
@@ -29881,9 +29880,9 @@
<code
title="dom-MediaError-MEDIA_ERR_ABORTED">MEDIA_ERR_ABORTED</code>.</p></li>
- <li><p><span>Queue a task</span> to <span>fire a simple
- event</span> named <code title="event-media-abort">abort</code>
- at the <span>media element</span>.</p></li>
+ <li><p><span>Fire a simple event</span> named <code
+ title="event-media-abort">abort</code> at the <span>media
+ element</span>.</p></li>
<li><p>If the <span>media element</span>'s <code
title="dom-media-readyState">readyState</code> attribute has a
@@ -29892,9 +29891,9 @@
element's <code
title="dom-media-networkState">networkState</code> attribute to
the <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code>
- value and <span>queue a task</span> to <span>fire a simple
- event</span> named <code title="event-media-emptied">emptied</code>
- at the element. Otherwise, set the element's <code
+ value and <span>fire a simple event</span> named <code
+ title="event-media-emptied">emptied</code> at the element.
+ Otherwise, set the element's <code
title="dom-media-networkState">networkState</code> attribute to
the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>
value.</p></li>
@@ -29929,14 +29928,17 @@
</dd>
- <dt id="found-a-media-resource-specific-timed-track">If the <span>media resource</span> is found to declare a <span>media-resource-specific text track</span> that the user agent supports</dt>
+ <dt id="found-a-media-resource-specific-timed-track">If the
+ <span>media resource</span> is found to declare a
+ <span>media-resource-specific text track</span> that the user
+ agent supports</dt>
<dd>
<p>If the <span>media data</span> is
- <span>CORS-same-origin</span>, <span>queue a task</span> to run
- the <span>steps to expose a media-resource-specific text
- track</span> with the relevant data.</p>
+ <span>CORS-same-origin</span>, run the <span>steps to expose a
+ media-resource-specific text track</span> with the relevant
+ data.</p>
<p class="note">Cross-origin videos do not expose their
subtitles, since that would allow attacks such as hostile sites
@@ -29970,7 +29972,7 @@
seek back to the start. In fact, in this situation, once <span
title="ended playback">playback has ended</span>, the user agent
will end up firing a <code
- title="event-media-stalled">stalled</code> event, as described
+ title="event-media-suspend">suspend</code> event, as described
earlier.</p>
</li>
More information about the Commit-Watchers
mailing list