Skip to content
Permalink
Browse files

[giow] (2) Fix a race condition between setting src and firing onload…

… for <track>.

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

git-svn-id: http://svn.whatwg.org/webapps@6732 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 24, 2011
1 parent 77cb7e1 commit 79149028a739e24239e6b1df8d02d5fe167ee91f
Showing with 27 additions and 34 deletions.
  1. +9 −11 complete.html
  2. +9 −11 index
  3. +9 −12 source
<i>monitoring</i>.</p>

<p>If the <a href=#fetch title=fetch>fetching algorithm</a> does not
fail, then, when it completes, <a href=#queue-a-task>queue a task</a> to run
the following steps:</p>
fail, then the final <a href=#concept-task title=concept-task>task</a> that
is <a href=#queue-a-task title="queue a task">queued</a> by the
<a href=#networking-task-source>networking task source</a> must run the following
steps:</p>

<ol><li><p>Change the <a href=#text-track-readiness-state>text track readiness state</a> to
<a href=#text-track-loaded title="text track loaded">loaded</a>.</li>

</li>

</ol><p>Once that <a href=#concept-task title=concept-task>task</a> is <a href=#queue-a-task title="queue a task">queued</a>, move on to the step below
labeled <i>monitoring</i>.</p>
<li><p>Jump to the step below labeled <i>monitoring</i>.</li>

<p>If, while the <a href=#fetch title=fetch>fetching algorithm</a> is
</ol><p>If, while the <a href=#fetch title=fetch>fetching algorithm</a> is
active, either:</p>

<ul><li>the <a href=#track-url>track URL</a> changes so that it is no longer

</ul><p>...then the user agent must run the following steps:</p>

<ol><li><p>Abort the <a href=#fetch title=fetch>fetching
algorithm</a>.</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-abort>abort</code> at
the <code><a href=#the-track-element>track</a></code> element.</li>
<ol><li><p>Abort the <a href=#fetch title=fetch>fetching algorithm</a>,
discarding any pending <a href=#concept-task title=concept-task>tasks</a>
generated by that algorithm.</li>

<li><p>Let <var title="">URL</var> be the new <a href=#track-url>track
URL</a>.</li>
20 index
<i>monitoring</i>.</p>

<p>If the <a href=#fetch title=fetch>fetching algorithm</a> does not
fail, then, when it completes, <a href=#queue-a-task>queue a task</a> to run
the following steps:</p>
fail, then the final <a href=#concept-task title=concept-task>task</a> that
is <a href=#queue-a-task title="queue a task">queued</a> by the
<a href=#networking-task-source>networking task source</a> must run the following
steps:</p>

<ol><li><p>Change the <a href=#text-track-readiness-state>text track readiness state</a> to
<a href=#text-track-loaded title="text track loaded">loaded</a>.</li>

</li>

</ol><p>Once that <a href=#concept-task title=concept-task>task</a> is <a href=#queue-a-task title="queue a task">queued</a>, move on to the step below
labeled <i>monitoring</i>.</p>
<li><p>Jump to the step below labeled <i>monitoring</i>.</li>

<p>If, while the <a href=#fetch title=fetch>fetching algorithm</a> is
</ol><p>If, while the <a href=#fetch title=fetch>fetching algorithm</a> is
active, either:</p>

<ul><li>the <a href=#track-url>track URL</a> changes so that it is no longer

</ul><p>...then the user agent must run the following steps:</p>

<ol><li><p>Abort the <a href=#fetch title=fetch>fetching
algorithm</a>.</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-abort>abort</code> at
the <code><a href=#the-track-element>track</a></code> element.</li>
<ol><li><p>Abort the <a href=#fetch title=fetch>fetching algorithm</a>,
discarding any pending <a href=#concept-task title=concept-task>tasks</a>
generated by that algorithm.</li>

<li><p>Let <var title="">URL</var> be the new <a href=#track-url>track
URL</a>.</li>
21 source
<i>monitoring</i>.</p>

<p>If the <span title="fetch">fetching algorithm</span> does not
fail, then, when it completes, <span>queue a task</span> to run
the following steps:</p>
fail, then the final <span title="concept-task">task</span> that
is <span title="queue a task">queued</span> by the
<span>networking task source</span> must run the following
steps:</p>

<ol>


</li>

</ol>
<li><p>Jump to the step below labeled <i>monitoring</i>.</p></li>

<p>Once that <span title="concept-task">task</span> is <span
title="queue a task">queued</span>, move on to the step below
labeled <i>monitoring</i>.</p>
</ol>

<p>If, while the <span title="fetch">fetching algorithm</span> is
active, either:</p>

<ol>

<li><p>Abort the <span title="fetch">fetching
algorithm</span>.</p></li>

<li><p><span>Queue a task</span> to <span>fire a simple
event</span> named <code title="event-abort">abort</code> at
the <code>track</code> element.</p></li>
<li><p>Abort the <span title="fetch">fetching algorithm</span>,
discarding any pending <span title="concept-task">tasks</span>
generated by that algorithm.</p></li>

<li><p>Let <var title="">URL</var> be the new <span>track
URL</span>.</p></li>

0 comments on commit 7914902

Please sign in to comment.
You can’t perform that action at this time.