Skip to content

Commit

Permalink
[gow] (1) Make 'abort' and 'emptied' events in load() fire asynchrono…
Browse files Browse the repository at this point in the history
…usly.

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

git-svn-id: http://svn.whatwg.org/webapps@4212 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 20, 2009
1 parent f347081 commit 2a26044
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 28 deletions.
15 changes: 7 additions & 8 deletions complete.html
Expand Up @@ -22529,17 +22529,16 @@ <h5 id=loading-the-media-resource><span class=secno>4.8.10.5 </span>Loading the
value of the <code title=dom-media-defaultPlaybackRate><a href=#dom-media-defaultplaybackrate>defaultPlaybackRate</a></code>
attribute.</li>

<li><p>If <var title="">aborted</var> is true, set the <code title=dom-media-error><a href=#dom-media-error>error</a></code> 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>,
and <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>Set the <code title=dom-media-error><a href=#dom-media-error>error</a></code> attribute
to null and the <a href=#autoplaying-flag>autoplaying flag</a> to true.</li>

<li><p>If <var title="">emptied</var> is true, <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 <a href=#media-element>media element</a>.</li>
<li><p>If <var title="">aborted</var> is true, <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>If <var title="">emptied</var> is true, <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 <a href=#media-element>media
element</a>.</li>

<li><p>Invoke the <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>
Expand Down
15 changes: 7 additions & 8 deletions index
Expand Up @@ -22358,17 +22358,16 @@ interface <dfn>CueRangeCallback</dfn> {
value of the <code title=dom-media-defaultPlaybackRate><a href=#dom-media-defaultplaybackrate>defaultPlaybackRate</a></code>
attribute.</li>

<li><p>If <var title="">aborted</var> is true, set the <code title=dom-media-error><a href=#dom-media-error>error</a></code> 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>,
and <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>Set the <code title=dom-media-error><a href=#dom-media-error>error</a></code> attribute
to null and the <a href=#autoplaying-flag>autoplaying flag</a> to true.</li>

<li><p>If <var title="">emptied</var> is true, <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 <a href=#media-element>media element</a>.</li>
<li><p>If <var title="">aborted</var> is true, <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>If <var title="">emptied</var> is true, <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 <a href=#media-element>media
element</a>.</li>

<li><p>Invoke the <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>
Expand Down
21 changes: 9 additions & 12 deletions source
Expand Up @@ -24044,21 +24044,18 @@ interface <dfn>CueRangeCallback</dfn> {
title="dom-media-defaultPlaybackRate">defaultPlaybackRate</code>
attribute.</p></li>

<li><p>If <var title="">aborted</var> is true, set the <code
title="dom-media-error">error</code> attribute to a new
<code>MediaError</code> object whose <code
title="dom-MediaError-code">code</code> attribute is set to <code
title="dom-MediaError-MEDIA_ERR_ABORTED">MEDIA_ERR_ABORTED</code>,
and <span>fire a simple event</span> named <code
title="event-media-abort">abort</code> at the <span>media
element</span>.</p></li>

<li><p>Set the <code title="dom-media-error">error</code> attribute
to null and the <span>autoplaying flag</span> to true.</p></li>

<li><p>If <var title="">emptied</var> is true, <span>fire a simple
event</span> named <code title="event-media-emptied">emptied</code> at
the <span>media element</span>.</p></li>
<li><p>If <var title="">aborted</var> is true, <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>If <var title="">emptied</var> is true, <span>queue a
task</span> to <span>fire a simple event</span> named <code
title="event-media-emptied">emptied</code> at the <span>media
element</span>.</p></li>

<li><p>Invoke the <span>media element</span>'s <span
title="concept-media-load-algorithm">resource selection
Expand Down

0 comments on commit 2a26044

Please sign in to comment.