HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4133

File a bug

SVNBugCommentTime (UTC)
4133[Gecko] [Opera] [Webkit] Make media elements not fire progress events, just regular events, since we don't know what to put in their 'loaded' attributes.2009-10-14 10:08
Index: source
===================================================================
--- source	(revision 4132)
+++ source	(revision 4133)
@@ -23859,13 +23859,11 @@
    <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>,
-   <span>fire a progress event</span> named <code
-   title="event-media-abort">abort</code> at the <span>media element</span>,
-   in the context of the <span title="fetch">fetching process</span>
-   that is in progress for the element, and <span>fire a progress
-   event</span> named <code title="event-media-loadend">loadend</code> at
-   the <span>media element</span>, in the context of the same <span
-   title="fetch">fetching process</span>.</p></li>
+   <span>fire a simple event</span> named <code
+   title="event-media-abort">abort</code> at the <span>media
+   element</span>, and <span>fire a simple event</span> named <code
+   title="event-media-loadend">loadend</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>
@@ -23943,10 +23941,10 @@
    <code
    title="dom-media-NETWORK_LOADING">NETWORK_LOADING</code>.</p></li>
 
-   <li><p>&#x231B; <span>Queue a task</span> to <span>fire a progress
-   event</span> named <code title="event-media-loadstart">loadstart</code>
-   at the <span>media element</span>, with no relevant <span
-   title="fetch">fetching process</span>.</p></li>
+   <li><p>&#x231B; <span>Queue a task</span> to <span>fire a simple
+   event</span> named <code
+   title="event-media-loadstart">loadstart</code> at the <span>media
+   element</span>.</p></li>
 
    <li>
 
@@ -23993,21 +23991,14 @@
      title="dom-media-NETWORK_NO_SOURCE">NETWORK_NO_SOURCE</span>
      value.</p></li>
 
-     <li><p><span>Queue a task</span> to <span>fire a progress
-     event</span> named <code title="event-media-error">error</code> at the
-     <span>media element</span>, in the context of the <span
-     title="fetch">fetching process</span> that was used to try to
-     obtain the <span>media resource</span> in the <span
-     title="concept-media-load-resource">resource fetch
-     algorithm</span>.</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>Queue a task</span> to <span>fire a progress
-     event</span> named <code title="event-media-loadend">loadend</code> at
-     the <span>media element</span>, in the context of the <span
-     title="fetch">fetching process</span> that was used to try to
-     obtain the <span>media resource</span> in the <span
-     title="concept-media-load-resource">resource fetch
-     algorithm</span>.</p></li>
+     <li><p><span>Queue a task</span> to <span>fire a simple
+     event</span> named <code
+     title="event-media-loadend">loadend</code> at the <span>media
+     element</span>.</p></li>
 
      <li><p>Set the element's <span>delaying-the-load-event flag</span>
      to false. This stops <span title="delay the load event">delaying
@@ -24224,17 +24215,13 @@
 
     <p>Every 350ms (&#xB1;200ms) or for every byte received, whichever
     is <em>least</em> frequent, <span>queue a task</span> to
-    <span>fire a progress event</span> named <code
-    title="event-media-progress">progress</code> at the element, in the
-    context of the <span title="fetch">fetching process</span> started
-    by this instance of this algorithm.</p>
+    <span>fire a simple event</span> named <code
+    title="event-media-progress">progress</code> at the element.</p>
 
     <p>If at any point the user agent has received no data for more
     than about three seconds, then <span>queue a task</span> to
-    <span>fire a progress event</span> named <code
-    title="event-media-stalled">stalled</code> at the element, in the
-    context of the <span title="fetch">fetching process</span> started
-    by this instance of this algorithm.</p>
+    <span>fire a simple event</span> named <code
+    title="event-media-stalled">stalled</code> at the element.</p>
 
     <p>User agents may allow users to selectively block or slow
     <span>media data</span> downloads. When a <span>media
@@ -24252,12 +24239,11 @@
     suspended, the user agent must set the <code
     title="dom-media-networkState">networkState</code> to <code
     title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> and <span>queue
-    a task</span> to <span>fire a progress event</span> named <code
-    title="event-media-suspend">suspend</code> at the element, in the
-    context of the <span title="fetch">fetching process</span> started
-    by this instance of this algorithm. If and when downloading of the
-    resource resumes, the user agent must set the <code
-    title="dom-media-networkState">networkState</code> to <code
+    a task</span> to <span>fire a simple event</span> named <code
+    title="event-media-suspend">suspend</code> at the element. If and
+    when downloading of the resource resumes, the user agent must set
+    the <code title="dom-media-networkState">networkState</code> to
+    <code
     title="dom-media-NETWORK_LOADING">NETWORK_LOADING</code>.</p>
 
     <p>The <code title="attr-media-autobuffer">autobuffer</code>
@@ -24441,11 +24427,9 @@
 
      <dd>
 
-      <p><span>Queue a task</span> to <span>fire a progress
-      event</span> named <code title="event-media-progress">progress</code>
-      at the <span>media element</span>, in the context of the <span
-      title="fetch">fetching process</span> started by this instance
-      of this algorithm.</p>
+      <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>
 
      </dd>
 
@@ -24471,17 +24455,14 @@
        <code
        title="dom-MediaError-MEDIA_ERR_NETWORK">MEDIA_ERR_NETWORK</code>.</p></li>
 
-       <li><p><span>Queue a task</span> to <span>fire a progress
-       event</span> named <code title="event-media-error">error</code> at
-       the <span>media element</span>, in the context of the <span
-       title="fetch">fetching process</span> started by this instance
-       of this algorithm.</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>Queue a task</span> to <span>fire a progress
-       event</span> named <code title="event-media-loadend">loadend</code>
-       at the <span>media element</span>, in the context of the <span
-       title="fetch">fetching process</span> started by this instance
-       of this algorithm.</p></li>
+       <li><p><span>Queue a task</span> to <span>fire a simple
+       event</span> named <code
+       title="event-media-loadend">loadend</code> at the <span>media
+       element</span>.</p></li>
 
        <li><p>Set the element's <code
        title="dom-media-networkState">networkState</code> attribute to
@@ -24524,17 +24505,14 @@
        <code
        title="dom-MediaError-MEDIA_ERR_DECODE">MEDIA_ERR_DECODE</code>.</p></li>
 
-       <li><p><span>Queue a task</span> to <span>fire a progress
-       event</span> named <code title="event-media-error">error</code> at
-       the <span>media element</span>, in the context of the <span
-       title="fetch">fetching process</span> started by this instance
-       of this algorithm.</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>Queue a task</span> to <span>fire a progress
-       event</span> named <code title="event-media-loadend">loadend</code>
-       at the <span>media element</span>, in the context of the <span
-       title="fetch">fetching process</span> started by this instance
-       of this algorithm.</p></li>
+       <li><p><span>Queue a task</span> to <span>fire a simple
+       event</span> named <code
+       title="event-media-loadend">loadend</code> at the <span>media
+       element</span>.</p></li>
 
        <li><p>Set the element's <code
        title="dom-media-networkState">networkState</code> attribute to
@@ -24579,17 +24557,14 @@
        <code
        title="dom-MediaError-MEDIA_ERR_ABORT">MEDIA_ERR_ABORT</code>.</p></li>
 
-       <li><p><span>Queue a task</span> to <span>fire a progress
-       event</span> named <code title="event-media-abort">abort</code> at
-       the <span>media element</span>, in the context of the <span
-       title="fetch">fetching process</span> started by this instance
-       of this algorithm.</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>Queue a task</span> to <span>fire a progress
-       event</span> named <code title="event-media-loadend">loadend</code>
-       at the <span>media element</span>, in the context of the <span
-       title="fetch">fetching process</span> started by this instance
-       of this algorithm.</p></li>
+       <li><p><span>Queue a task</span> to <span>fire a simple
+       event</span> named <code
+       title="event-media-loadend">loadend</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
@@ -26145,34 +26120,34 @@
    <tbody>
     <tr>
      <td><dfn title="event-media-loadstart"><code>loadstart</code></dfn>
-     <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
+     <td><code>Event</code>
      <td>The user agent begins looking for <span>media data</span>, as part of the <span title="concept-media-load-algorithm">resource selection algorithm</span>.
      <td><code title="dom-media-networkState">networkState</code> equals <code title="dom-media-NETWORK_LOADING">NETWORK_LOADING</code>
     <tr>
      <td><dfn title="event-media-progress"><code>progress</code></dfn>
-     <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
+     <td><code>Event</code>
      <td>The user agent is fetching <span>media data</span>.
      <td><code title="dom-media-networkState">networkState</code> equals <code title="dom-media-NETWORK_LOADING">NETWORK_LOADING</code>
     <tr>
      <td><dfn title="event-media-suspend"><code>suspend</code></dfn>
-     <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
+     <td><code>Event</code>
      <td>The user agent is intentionally not currently fetching <span>media data</span>, but does not have the entire <span>media resource</span> downloaded.
      <td><code title="dom-media-networkState">networkState</code> equals <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>
     <tr>
      <td><dfn title="event-media-abort"><code>abort</code></dfn>
-     <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
+     <td><code>Event</code>
      <td>The user agent stops fetching the <span>media data</span> before it is completely downloaded, but not due to an error.
      <td><code title="dom-media-error">error</code> is an object with the code <code title="dom-MediaError-MEDIA_ERR_ABORTED">MEDIA_ERR_ABORTED</code>.
          <code title="dom-media-networkState">networkState</code> equals either <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> or <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>, depending on when the download was aborted.
     <tr>
      <td><dfn title="event-media-error"><code>error</code></dfn>
-     <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
+     <td><code>Event</code>
      <td>An error occurs while fetching the <span>media data</span>.
      <td><code title="dom-media-error">error</code> is an object with the code <code title="dom-MediaError-MEDIA_ERR_NETWORK">MEDIA_ERR_NETWORK</code> or higher.
          <code title="dom-media-networkState">networkState</code> equals either <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> or <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>, depending on when the download was aborted.
     <tr>
      <td><dfn title="event-media-loadend"><code>loadend</code></dfn>
-     <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
+     <td><code>Event</code>
      <td>The user agent stops fetching the <span>media data</span>, for whatever reason.
      <td>One of <code title="event-media-abort">abort</code> or <code title="event-media-error">error</code> has just fired.
     <tr>
@@ -57544,6 +57519,7 @@
   otherwise stated), and which uses the <code>Event</code> interface,
   must be dispatched at the given target.</p>
 
+<!--
   <p><dfn title="fire a progress event">Firing a progress event named
   <var title="">e</var></dfn>, optionally in the context of a
   particular instance of the <span title="fetch">fetching
@@ -57573,6 +57549,7 @@
   title="dom-ProgressEvents-total">total</code> and the <code
   title="dom-ProgressEvents-loaded">loaded</code> attributes must be
   set to zero. <a href="#refsPROGRESS">[PROGRESS]</a></p>
+-->
 
   <p>The default action of these event is to do nothing where where
   otherwise stated.</p>

|