[html5] r7148 - [giow] (1) Try to make the text track pending thing work better. Fixing https:// [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 26 15:12:32 PDT 2012


Author: ianh
Date: 2012-06-26 15:12:31 -0700 (Tue, 26 Jun 2012)
New Revision: 7148

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Try to make the text track pending thing work better.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14260
Affected topics: Video Text Tracks, Video and Audio

Modified: complete.html
===================================================================
--- complete.html	2012-06-26 20:18:07 UTC (rev 7147)
+++ complete.html	2012-06-26 22:12:31 UTC (rev 7148)
@@ -28890,6 +28890,14 @@
 
    <li>
 
+    <p>⌛ If the <a href=#media-element>media element</a>'s
+    <a href=#blocked-on-parser>blocked-on-parser</a> flag is false, then <a href=#populate-the-list-of-pending-text-tracks>populate
+    the list of pending text tracks</a>.</p>
+
+   </li>
+
+   <li>
+
     <p>⌛ If the <a href=#media-element>media element</a> has a <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute, then let <var title="">mode</var> be <i title="">attribute</i>.</p>
 
     <p>⌛ Otherwise, if the <a href=#media-element>media element</a> does not
@@ -29135,6 +29143,11 @@
    algorithm. This is now the element's <a href=#media-resource>media
    resource</a>.</li>
 
+   <li><p>Remove all <a href=#media-resource-specific-text-track title="media-resource-specific text
+   track">media-resource-specific text tracks</a> from the
+   <a href=#media-element>media element</a>'s <a href=#list-of-pending-text-tracks>list of pending text
+   tracks</a>, if any.</p>
+
    <li><p>Optionally, run the following substeps. This is the expected
    behavior if the user agent intends to not attempt to fetch the
    resource until the use requests it explicitly (e.g. as a way to
@@ -32834,16 +32847,44 @@
   </dl><p>Each <a href=#text-track>text track</a> has a corresponding
   <code><a href=#texttrack>TextTrack</a></code> object.</p>
 
-  <p>The <a href=#text-track title="text track">text tracks</a> of a
-  <a href=#media-element>media element</a> are <dfn id=the-text-tracks-are-ready title="the text tracks are
-  ready">ready</dfn> if all the <a href=#text-track title="text track">text
-  tracks</a> whose <a href=#text-track-mode title="text track mode">mode</a> was
-  not in the <a href=#text-track-disabled title="text track disabled">disabled</a> state
-  when the element's <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
-  algorithm</a> last started now have a <a href=#text-track-readiness-state>text track readiness
-  state</a> of <a href=#text-track-loaded title="text track loaded">loaded</a> or
-  <a href=#text-track-failed-to-load title="text track failed to load">failed to load</a>.</p>
+  <hr><p>Each <a href=#media-element>media element</a> has a <dfn id=list-of-pending-text-tracks>list of pending text
+  tracks</dfn>, which must initially be empty, and a
+  <dfn id=blocked-on-parser>blocked-on-parser</dfn> flag, which must initially be false.
+  When the user agent is required to <dfn id=populate-the-list-of-pending-text-tracks>populate the list of pending
+  text tracks</dfn> of a <a href=#media-element>media element</a>, the user agent
+  must add to the element's <a href=#list-of-pending-text-tracks>list of pending text tracks</a>
+  each <a href=#text-track>text track</a> in the element's <a href=#list-of-text-tracks>list of text
+  tracks</a> whose <a href=#text-track-mode>text track mode</a> is not <a href=#text-track-disabled title="text track disabled">disabled</a> and whose <a href=#text-track-readiness-state>text
+  track readiness state</a> is <!--either <span title="text track
+  not loaded">not loaded</span> or [there can't be any in the 'not
+  loaded' state that are not 'disabled']--> <a href=#text-track-loading title="text track
+  loading">loading</a>.</p>
 
+  <p>Whenever a <code><a href=#the-track-element>track</a></code> element's parent node changes, the
+  user agent must remove the corresponding <a href=#text-track>text track</a>
+  from any <a href=#list-of-pending-text-tracks>list of pending text tracks</a> that it is in.</p>
+
+  <p>Whenever a <a href=#text-track>text track</a>'s <a href=#text-track-readiness-state>text track readiness
+  state</a> changes to either <a href=#text-track-loaded title="text track
+  loaded">loaded</a> or <a href=#text-track-failed-to-load title="text track failed to
+  load">failed to load</a>, the user agent must remove it from any
+  <a href=#list-of-pending-text-tracks>list of pending text tracks</a> that it is in.</p>
+
+  <p>When a <a href=#media-element>media element</a> is created by an <a href=#html-parser>HTML
+  parser</a> or <a href=#xml-parser>XML parser</a>, the user agent must set
+  the element's <a href=#blocked-on-parser>blocked-on-parser</a> flag to true. When a
+  <a href=#media-element>media element</a> is popped off the <a href=#stack-of-open-elements>stack of open
+  elements</a> of an <a href=#html-parser>HTML parser</a> or <a href=#xml-parser>XML
+  parser</a>, the user agent must <a href=#populate-the-list-of-pending-text-tracks>populate the list of
+  pending text tracks</a> and set the element's
+  <a href=#blocked-on-parser>blocked-on-parser</a> flag to false.</p>
+
+  <p>The <a href=#text-track title="text track">text tracks</a> of a <a href=#media-element>media
+  element</a> are <dfn id=the-text-tracks-are-ready title="the text tracks are
+  ready">ready</dfn> when both the element's <a href=#list-of-pending-text-tracks>list of pending
+  text tracks</a> is empty and the element's
+  <a href=#blocked-on-parser>blocked-on-parser</a> flag is false.</p>
+
   <hr><p>A <dfn id=text-track-cue>text track cue</dfn> is the unit of time-sensitive data
   in a <a href=#text-track>text track</a>, corresponding for instance for
   subtitles and captions to the text that appears at a particular time

Modified: index
===================================================================
--- index	2012-06-26 20:18:07 UTC (rev 7147)
+++ index	2012-06-26 22:12:31 UTC (rev 7148)
@@ -28890,6 +28890,14 @@
 
    <li>
 
+    <p>⌛ If the <a href=#media-element>media element</a>'s
+    <a href=#blocked-on-parser>blocked-on-parser</a> flag is false, then <a href=#populate-the-list-of-pending-text-tracks>populate
+    the list of pending text tracks</a>.</p>
+
+   </li>
+
+   <li>
+
     <p>⌛ If the <a href=#media-element>media element</a> has a <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute, then let <var title="">mode</var> be <i title="">attribute</i>.</p>
 
     <p>⌛ Otherwise, if the <a href=#media-element>media element</a> does not
@@ -29135,6 +29143,11 @@
    algorithm. This is now the element's <a href=#media-resource>media
    resource</a>.</li>
 
+   <li><p>Remove all <a href=#media-resource-specific-text-track title="media-resource-specific text
+   track">media-resource-specific text tracks</a> from the
+   <a href=#media-element>media element</a>'s <a href=#list-of-pending-text-tracks>list of pending text
+   tracks</a>, if any.</p>
+
    <li><p>Optionally, run the following substeps. This is the expected
    behavior if the user agent intends to not attempt to fetch the
    resource until the use requests it explicitly (e.g. as a way to
@@ -32834,16 +32847,44 @@
   </dl><p>Each <a href=#text-track>text track</a> has a corresponding
   <code><a href=#texttrack>TextTrack</a></code> object.</p>
 
-  <p>The <a href=#text-track title="text track">text tracks</a> of a
-  <a href=#media-element>media element</a> are <dfn id=the-text-tracks-are-ready title="the text tracks are
-  ready">ready</dfn> if all the <a href=#text-track title="text track">text
-  tracks</a> whose <a href=#text-track-mode title="text track mode">mode</a> was
-  not in the <a href=#text-track-disabled title="text track disabled">disabled</a> state
-  when the element's <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
-  algorithm</a> last started now have a <a href=#text-track-readiness-state>text track readiness
-  state</a> of <a href=#text-track-loaded title="text track loaded">loaded</a> or
-  <a href=#text-track-failed-to-load title="text track failed to load">failed to load</a>.</p>
+  <hr><p>Each <a href=#media-element>media element</a> has a <dfn id=list-of-pending-text-tracks>list of pending text
+  tracks</dfn>, which must initially be empty, and a
+  <dfn id=blocked-on-parser>blocked-on-parser</dfn> flag, which must initially be false.
+  When the user agent is required to <dfn id=populate-the-list-of-pending-text-tracks>populate the list of pending
+  text tracks</dfn> of a <a href=#media-element>media element</a>, the user agent
+  must add to the element's <a href=#list-of-pending-text-tracks>list of pending text tracks</a>
+  each <a href=#text-track>text track</a> in the element's <a href=#list-of-text-tracks>list of text
+  tracks</a> whose <a href=#text-track-mode>text track mode</a> is not <a href=#text-track-disabled title="text track disabled">disabled</a> and whose <a href=#text-track-readiness-state>text
+  track readiness state</a> is <!--either <span title="text track
+  not loaded">not loaded</span> or [there can't be any in the 'not
+  loaded' state that are not 'disabled']--> <a href=#text-track-loading title="text track
+  loading">loading</a>.</p>
 
+  <p>Whenever a <code><a href=#the-track-element>track</a></code> element's parent node changes, the
+  user agent must remove the corresponding <a href=#text-track>text track</a>
+  from any <a href=#list-of-pending-text-tracks>list of pending text tracks</a> that it is in.</p>
+
+  <p>Whenever a <a href=#text-track>text track</a>'s <a href=#text-track-readiness-state>text track readiness
+  state</a> changes to either <a href=#text-track-loaded title="text track
+  loaded">loaded</a> or <a href=#text-track-failed-to-load title="text track failed to
+  load">failed to load</a>, the user agent must remove it from any
+  <a href=#list-of-pending-text-tracks>list of pending text tracks</a> that it is in.</p>
+
+  <p>When a <a href=#media-element>media element</a> is created by an <a href=#html-parser>HTML
+  parser</a> or <a href=#xml-parser>XML parser</a>, the user agent must set
+  the element's <a href=#blocked-on-parser>blocked-on-parser</a> flag to true. When a
+  <a href=#media-element>media element</a> is popped off the <a href=#stack-of-open-elements>stack of open
+  elements</a> of an <a href=#html-parser>HTML parser</a> or <a href=#xml-parser>XML
+  parser</a>, the user agent must <a href=#populate-the-list-of-pending-text-tracks>populate the list of
+  pending text tracks</a> and set the element's
+  <a href=#blocked-on-parser>blocked-on-parser</a> flag to false.</p>
+
+  <p>The <a href=#text-track title="text track">text tracks</a> of a <a href=#media-element>media
+  element</a> are <dfn id=the-text-tracks-are-ready title="the text tracks are
+  ready">ready</dfn> when both the element's <a href=#list-of-pending-text-tracks>list of pending
+  text tracks</a> is empty and the element's
+  <a href=#blocked-on-parser>blocked-on-parser</a> flag is false.</p>
+
   <hr><p>A <dfn id=text-track-cue>text track cue</dfn> is the unit of time-sensitive data
   in a <a href=#text-track>text track</a>, corresponding for instance for
   subtitles and captions to the text that appears at a particular time

Modified: source
===================================================================
--- source	2012-06-26 20:18:07 UTC (rev 7147)
+++ source	2012-06-26 22:12:31 UTC (rev 7148)
@@ -31262,6 +31262,14 @@
 
    <li>
 
+    <p>&#x231B; If the <span>media element</span>'s
+    <span>blocked-on-parser</span> flag is false, then <span>populate
+    the list of pending text tracks</span>.</p>
+
+   </li>
+
+   <li>
+
     <p>&#x231B; If the <span>media element</span> has a <code
     title="attr-media-src">src</code> attribute, then let <var
     title="">mode</var> be <i title="">attribute</i>.</p>
@@ -31573,6 +31581,11 @@
    algorithm. This is now the element's <span>media
    resource</span>.</p></li>
 
+   <li><p>Remove all <span title="media-resource-specific text
+   track">media-resource-specific text tracks</span> from the
+   <span>media element</span>'s <span>list of pending text
+   tracks</span>, if any.</p>
+
    <li><p>Optionally, run the following substeps. This is the expected
    behavior if the user agent intends to not attempt to fetch the
    resource until the use requests it explicitly (e.g. as a way to
@@ -35927,17 +35940,47 @@
   <p>Each <span>text track</span> has a corresponding
   <code>TextTrack</code> object.</p>
 
-  <p>The <span title="text track">text tracks</span> of a
-  <span>media element</span> are <dfn title="the text tracks are
-  ready">ready</dfn> if all the <span title="text track">text
-  tracks</span> whose <span title="text track mode">mode</span> was
-  not in the <span title="text track disabled">disabled</span> state
-  when the element's <span
-  title="concept-media-load-algorithm">resource selection
-  algorithm</span> last started now have a <span>text track readiness
-  state</span> of <span title="text track loaded">loaded</span> or
-  <span title="text track failed to load">failed to load</span>.</p>
+  <hr>
 
+  <p>Each <span>media element</span> has a <dfn>list of pending text
+  tracks</dfn>, which must initially be empty, and a
+  <dfn>blocked-on-parser</dfn> flag, which must initially be false.
+  When the user agent is required to <dfn>populate the list of pending
+  text tracks</dfn> of a <span>media element</span>, the user agent
+  must add to the element's <span>list of pending text tracks</span>
+  each <span>text track</span> in the element's <span>list of text
+  tracks</span> whose <span>text track mode</span> is not <span
+  title="text track disabled">disabled</span> and whose <span>text
+  track readiness state</span> is <!--either <span title="text track
+  not loaded">not loaded</span> or [there can't be any in the 'not
+  loaded' state that are not 'disabled']--> <span title="text track
+  loading">loading</span>.</p>
+
+  <p>Whenever a <code>track</code> element's parent node changes, the
+  user agent must remove the corresponding <span>text track</span>
+  from any <span>list of pending text tracks</span> that it is in.</p>
+
+  <p>Whenever a <span>text track</span>'s <span>text track readiness
+  state</span> changes to either <span title="text track
+  loaded">loaded</span> or <span title="text track failed to
+  load">failed to load</span>, the user agent must remove it from any
+  <span>list of pending text tracks</span> that it is in.</p>
+
+  <p>When a <span>media element</span> is created by an <span>HTML
+  parser</span> or <span>XML parser</span>, the user agent must set
+  the element's <span>blocked-on-parser</span> flag to true. When a
+  <span>media element</span> is popped off the <span>stack of open
+  elements</span> of an <span>HTML parser</span> or <span>XML
+  parser</span>, the user agent must <span>populate the list of
+  pending text tracks</span> and set the element's
+  <span>blocked-on-parser</span> flag to false.</p>
+
+  <p>The <span title="text track">text tracks</span> of a <span>media
+  element</span> are <dfn title="the text tracks are
+  ready">ready</dfn> when both the element's <span>list of pending
+  text tracks</span> is empty and the element's
+  <span>blocked-on-parser</span> flag is false.</p>
+
   <hr>
 
   <p>A <dfn>text track cue</dfn> is the unit of time-sensitive data




More information about the Commit-Watchers mailing list