[MSE] Fix CR blocking bugs.
authorAaron Colwell <acolwell@chromium.org>
Tue, 10 Dec 2013 07:54:50 -0800
changeset 214 d8ad50e85da3
parent 213 63464ffff5b3
child 215 d9c9406a821f
[MSE] Fix CR blocking bugs.

Bug 23169 - Restore totalFrameDelay units to seconds.
Bug 23989 - Update blob URL origin text to remove stale File API reference.
media-source/media-source-cr.html
media-source/media-source-respec.html
media-source/media-source.html
media-source/media-source.js
--- a/media-source/media-source-cr.html	Tue Dec 03 08:02:27 2013 -0800
+++ b/media-source/media-source-cr.html	Tue Dec 10 07:54:50 2013 -0800
@@ -400,11 +400,11 @@
   </p>
   <h1 class="title p-name" id="title" property="dcterms:title">Media Source Extensions</h1>
   
-  <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2013-12-12T08:00:00.000Z" id="w3c-candidate-recommendation-12-december-2013"><abbr title="World Wide Web Consortium">W3C</abbr> Candidate Recommendation <time class="dt-published" datetime="2013-12-12">12 December 2013</time></h2>
+  <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2014-01-09T08:00:00.000Z" id="w3c-candidate-recommendation-09-january-2014"><abbr title="World Wide Web Consortium">W3C</abbr> Candidate Recommendation <time class="dt-published" datetime="2014-01-09">09 January 2014</time></h2>
   <dl>
     
       <dt>This version:</dt>
-      <dd><a class="u-url" href="http://www.w3.org/TR/2013/CR-media-source-20131212/">http://www.w3.org/TR/2013/CR-media-source-20131212/</a></dd>
+      <dd><a class="u-url" href="http://www.w3.org/TR/2014/CR-media-source-20140109/">http://www.w3.org/TR/2014/CR-media-source-20140109/</a></dd>
       <dt>Latest published version:</dt>
       <dd><a href="http://www.w3.org/TR/media-source/">http://www.w3.org/TR/media-source/</a></dd>
     
@@ -438,7 +438,7 @@
     
       <p class="copyright">
         <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> ©
-        2013
+        2014
         
         <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup>
         (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>,
@@ -507,7 +507,7 @@
             <abbr title="World Wide Web Consortium">W3C</abbr> publishes a Candidate Recommendation to indicate that the document is believed to be
             stable and to encourage implementation by the developer community. This Candidate
             Recommendation is expected to advance to Proposed Recommendation no earlier than
-            12 March 2013.
+            09 April 2014.
           
           
             All comments are welcome.
@@ -616,7 +616,7 @@
 
           <dt id="displayed-frame-delay">Displayed Frame Delay</dt>
           <dd>
-            <p>The delay between a frame's presentation time and the actual time it was displayed, in microseconds &amp; rounded to the nearest display refresh interval. This
+            <p>The delay between a frame's presentation time and the actual time it was displayed, in a double-precision value in seconds &amp; rounded to the nearest display refresh interval. This
               delay is always greater than or equal to zero since frames must never be displayed before their presentation time. Non-zero delays are a sign of playback jitter
               and possible loss of A/V sync.</p>
           </dd>
@@ -636,7 +636,7 @@
           <dd>
             <p>A MediaSource object URL is a unique <a href="http://www.w3.org/TR/FileAPI/#url">Blob URI</a> [<cite><a class="bibref" href="#bib-FILE-API">FILE-API</a></cite>] created by <code><a href="#widl-URL-createObjectURL-DOMString-MediaSource-mediaSource">createObjectURL()</a></code>. It is used to attach a <a href="#idl-def-MediaSource" class="idlType"><code>MediaSource</code></a> object to an HTMLMediaElement.</p>
             <p>These URLs are the same as a <a href="http://www.w3.org/TR/FileAPI/#url">Blob URI</a>, except that anything in the definition of that feature that refers to <a href="http://www.w3.org/TR/FileAPI/#dfn-file">File</a> and <a href="http://www.w3.org/TR/FileAPI/#dfn-Blob">Blob</a> objects is hereby extended to also apply to <a href="#idl-def-MediaSource" class="idlType"><code>MediaSource</code></a> objects.</p>
-            <p>The <a href="http://www.w3.org/TR/html5/browsers.html#origin-0">origin</a> of the MediaSource object URL is specified by the <a href="http://www.w3.org/TR/FileAPI/#originOfBlob">Origin of Blob URIs</a> [<cite><a class="bibref" href="#bib-FILE-API">FILE-API</a></cite>].</p>
+            <p>The <a href="http://www.w3.org/TR/html5/browsers.html#origin-0">origin</a> of the MediaSource object URL is the <a href="http://www.w3.org/TR/html5/browsers.html#effective-script-origin">effective script origin</a> of the document that called <code><a href="#widl-URL-createObjectURL-DOMString-MediaSource-mediaSource">createObjectURL()</a></code>.</p>
             <div class="note"><div class="note-title" aria-level="3" role="heading" id="h_note_3"><span>Note</span></div><p class="">For example, the <a href="http://www.w3.org/TR/html5/browsers.html#origin-0">origin</a> of the MediaSource object URL affects the way that the media element is <a href="http://www.w3.org/TR/html5/embedded-content-0.html#security-with-canvas-elements">consumed by canvas</a>.</p></div>
           </dd>
 
@@ -1483,7 +1483,7 @@
 	      <p>If the <var><a href="#sourcebuffer-append-state">append state</a></var> equals <a href="#sourcebuffer-waiting-for-segment">WAITING_FOR_SEGMENT</a>, then run the following steps:</p>
 	      <ol>
 	        <li>If the beginning of the <var><a href="#sourcebuffer-input-buffer">input buffer</a></var> indicates the start of an <a href="#init-segment">initialization segment</a>, set the <var><a href="#sourcebuffer-append-state">append state</a></var> to <a href="#sourcebuffer-parsing-init-segment">PARSING_INIT_SEGMENT</a>.</li>
-	        <li>If the beginning of the <var><a href="#sourcebuffer-input-buffer">input buffer</a></var> indicates the start of an <a href="#media-segment">media segment</a>, set <var><a href="#sourcebuffer-append-state">append state</a></var> to <a href="#sourcebuffer-parsing-media-segment">PARSING_MEDIA_SEGMENT</a>.</li>
+	        <li>If the beginning of the <var><a href="#sourcebuffer-input-buffer">input buffer</a></var> indicates the start of a <a href="#media-segment">media segment</a>, set <var><a href="#sourcebuffer-append-state">append state</a></var> to <a href="#sourcebuffer-parsing-media-segment">PARSING_MEDIA_SEGMENT</a>.</li>
 	        <li>Jump to the <i>loop top</i> step above.</li>
 	      </ol>
             </li>
@@ -2617,7 +2617,16 @@
         </thead>
         <tbody>
           <tr>
-            <td>02 December 2013</td>
+            <td>10 December 2013</td>
+            <td>
+              <ul>
+                <li>Bug 23169 - Restore totalFrameDelay units to seconds.</li>
+                <li>Bug 23989 - Update blob URL origin text to remove stale File API reference.</li>
+              </ul>
+            </td>
+          </tr>
+          <tr>
+            <td><a href="https://dvcs.w3.org/hg/html-media/raw-file/7c96c97306ce/media-source/media-source.html">02 December 2013</a></td>
             <td>
               <ul>
                 <li>Bug 23818 - Make external spec references normative.</li>
--- a/media-source/media-source-respec.html	Tue Dec 03 08:02:27 2013 -0800
+++ b/media-source/media-source-respec.html	Tue Dec 10 07:54:50 2013 -0800
@@ -193,7 +193,7 @@
 
           <dt id="displayed-frame-delay">Displayed Frame Delay</dt>
           <dd>
-            <p>The delay between a frame's presentation time and the actual time it was displayed, in microseconds & rounded to the nearest display refresh interval. This
+            <p>The delay between a frame's presentation time and the actual time it was displayed, in a double-precision value in seconds & rounded to the nearest display refresh interval. This
               delay is always greater than or equal to zero since frames must never be displayed before their presentation time. Non-zero delays are a sign of playback jitter
               and possible loss of A/V sync.</p>
           </dd>
@@ -213,7 +213,7 @@
           <dd>
             <p>A MediaSource object URL is a unique <a def-id="blob-uri"></a> [[!FILE-API]] created by <a def-id="createObjectURL"></a>. It is used to attach a <a>MediaSource</a> object to an HTMLMediaElement.</p>
             <p>These URLs are the same as a <a def-id="blob-uri"></a>, except that anything in the definition of that feature that refers to <a def-id="File"></a> and <a def-id="Blob"></a> objects is hereby extended to also apply to <a>MediaSource</a> objects.</p>
-            <p>The <a def-id="origin">origin</a> of the MediaSource object URL is specified by the <a def-id="blob-origin"></a> [[!FILE-API]].</p>
+            <p>The <a def-id="origin">origin</a> of the MediaSource object URL is the <a def-id="effective-script-origin"></a> of the document that called <a def-id="createObjectURL"></a>.</p>
             <p class="note">For example, the <a def-id="origin"></a> of the MediaSource object URL affects the way that the media element is <a href="http://www.w3.org/TR/html5/embedded-content-0.html#security-with-canvas-elements">consumed by canvas</a>.</p>
           </dd>
 
@@ -1108,7 +1108,7 @@
 	      <p>If the <a def-id="append-state"></a> equals <a def-id="waiting-for-segment"></a>, then run the following steps:</p>
 	      <ol>
 	        <li>If the beginning of the <a def-id="input-buffer"></a> indicates the start of an <a def-id="init-segment"></a>, set the <a def-id="append-state"></a> to <a def-id="parsing-init-segment"></a>.</li>
-	        <li>If the beginning of the <a def-id="input-buffer"></a> indicates the start of an <a def-id="media-segment"></a>, set <a def-id="append-state"></a> to <a def-id="parsing-media-segment"></a>.</li>
+	        <li>If the beginning of the <a def-id="input-buffer"></a> indicates the start of a <a def-id="media-segment"></a>, set <a def-id="append-state"></a> to <a def-id="parsing-media-segment"></a>.</li>
 	        <li>Jump to the <i>loop top</i> step above.</li>
 	      </ol>
             </li>
@@ -2271,7 +2271,16 @@
         </thead>
         <tbody>
           <tr>
-            <td>02 December 2013</td>
+            <td>10 December 2013</td>
+            <td>
+              <ul>
+                <li>Bug 23169 - Restore totalFrameDelay units to seconds.</li>
+                <li>Bug 23989 - Update blob URL origin text to remove stale File API reference.</li>
+              </ul>
+            </td>
+          </tr>
+          <tr>
+            <td><a href="https://dvcs.w3.org/hg/html-media/raw-file/7c96c97306ce/media-source/media-source.html">02 December 2013</a></td>
             <td>
               <ul>
                 <li>Bug 23818 - Make external spec references normative.</li>
--- a/media-source/media-source.html	Tue Dec 03 08:02:27 2013 -0800
+++ b/media-source/media-source.html	Tue Dec 10 07:54:50 2013 -0800
@@ -400,7 +400,7 @@
   </p>
   <h1 class="title p-name" id="title" property="dcterms:title">Media Source Extensions</h1>
   
-  <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2013-12-04T00:01:33.000Z" id="w3c-editor-s-draft-03-december-2013"><abbr title="World Wide Web Consortium">W3C</abbr> Editor's Draft <time class="dt-published" datetime="2013-12-03">03 December 2013</time></h2>
+  <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2013-12-11T00:34:26.000Z" id="w3c-editor-s-draft-10-december-2013"><abbr title="World Wide Web Consortium">W3C</abbr> Editor's Draft <time class="dt-published" datetime="2013-12-10">10 December 2013</time></h2>
   <dl>
     
       <dt>This version:</dt>
@@ -608,7 +608,7 @@
 
           <dt id="displayed-frame-delay">Displayed Frame Delay</dt>
           <dd>
-            <p>The delay between a frame's presentation time and the actual time it was displayed, in microseconds &amp; rounded to the nearest display refresh interval. This
+            <p>The delay between a frame's presentation time and the actual time it was displayed, in a double-precision value in seconds &amp; rounded to the nearest display refresh interval. This
               delay is always greater than or equal to zero since frames must never be displayed before their presentation time. Non-zero delays are a sign of playback jitter
               and possible loss of A/V sync.</p>
           </dd>
@@ -628,7 +628,7 @@
           <dd>
             <p>A MediaSource object URL is a unique <a href="http://www.w3.org/TR/FileAPI/#url">Blob URI</a> [<cite><a class="bibref" href="#bib-FILE-API">FILE-API</a></cite>] created by <code><a href="#widl-URL-createObjectURL-DOMString-MediaSource-mediaSource">createObjectURL()</a></code>. It is used to attach a <a href="#idl-def-MediaSource" class="idlType"><code>MediaSource</code></a> object to an HTMLMediaElement.</p>
             <p>These URLs are the same as a <a href="http://www.w3.org/TR/FileAPI/#url">Blob URI</a>, except that anything in the definition of that feature that refers to <a href="http://www.w3.org/TR/FileAPI/#dfn-file">File</a> and <a href="http://www.w3.org/TR/FileAPI/#dfn-Blob">Blob</a> objects is hereby extended to also apply to <a href="#idl-def-MediaSource" class="idlType"><code>MediaSource</code></a> objects.</p>
-            <p>The <a href="http://www.w3.org/TR/html5/browsers.html#origin-0">origin</a> of the MediaSource object URL is specified by the <a href="http://www.w3.org/TR/FileAPI/#originOfBlob">Origin of Blob URIs</a> [<cite><a class="bibref" href="#bib-FILE-API">FILE-API</a></cite>].</p>
+            <p>The <a href="http://www.w3.org/TR/html5/browsers.html#origin-0">origin</a> of the MediaSource object URL is the <a href="http://www.w3.org/TR/html5/browsers.html#effective-script-origin">effective script origin</a> of the document that called <code><a href="#widl-URL-createObjectURL-DOMString-MediaSource-mediaSource">createObjectURL()</a></code>.</p>
             <div class="note"><div class="note-title" aria-level="3" role="heading" id="h_note_3"><span>Note</span></div><p class="">For example, the <a href="http://www.w3.org/TR/html5/browsers.html#origin-0">origin</a> of the MediaSource object URL affects the way that the media element is <a href="http://www.w3.org/TR/html5/embedded-content-0.html#security-with-canvas-elements">consumed by canvas</a>.</p></div>
           </dd>
 
@@ -1475,7 +1475,7 @@
 	      <p>If the <var><a href="#sourcebuffer-append-state">append state</a></var> equals <a href="#sourcebuffer-waiting-for-segment">WAITING_FOR_SEGMENT</a>, then run the following steps:</p>
 	      <ol>
 	        <li>If the beginning of the <var><a href="#sourcebuffer-input-buffer">input buffer</a></var> indicates the start of an <a href="#init-segment">initialization segment</a>, set the <var><a href="#sourcebuffer-append-state">append state</a></var> to <a href="#sourcebuffer-parsing-init-segment">PARSING_INIT_SEGMENT</a>.</li>
-	        <li>If the beginning of the <var><a href="#sourcebuffer-input-buffer">input buffer</a></var> indicates the start of an <a href="#media-segment">media segment</a>, set <var><a href="#sourcebuffer-append-state">append state</a></var> to <a href="#sourcebuffer-parsing-media-segment">PARSING_MEDIA_SEGMENT</a>.</li>
+	        <li>If the beginning of the <var><a href="#sourcebuffer-input-buffer">input buffer</a></var> indicates the start of a <a href="#media-segment">media segment</a>, set <var><a href="#sourcebuffer-append-state">append state</a></var> to <a href="#sourcebuffer-parsing-media-segment">PARSING_MEDIA_SEGMENT</a>.</li>
 	        <li>Jump to the <i>loop top</i> step above.</li>
 	      </ol>
             </li>
@@ -2609,7 +2609,16 @@
         </thead>
         <tbody>
           <tr>
-            <td>02 December 2013</td>
+            <td>10 December 2013</td>
+            <td>
+              <ul>
+                <li>Bug 23169 - Restore totalFrameDelay units to seconds.</li>
+                <li>Bug 23989 - Update blob URL origin text to remove stale File API reference.</li>
+              </ul>
+            </td>
+          </tr>
+          <tr>
+            <td><a href="https://dvcs.w3.org/hg/html-media/raw-file/7c96c97306ce/media-source/media-source.html">02 December 2013</a></td>
             <td>
               <ul>
                 <li>Bug 23818 - Make external spec references normative.</li>
--- a/media-source/media-source.js	Tue Dec 03 08:02:27 2013 -0800
+++ b/media-source/media-source.js	Tue Dec 10 07:54:50 2013 -0800
@@ -321,6 +321,7 @@
     'provide-a-stable-state': { func: webappapis_helper, fragment: 'provide-a-stable-state', link_text: 'provide a stable state',  },
 
     'origin': { func: browsers_helper, fragment: 'origin-0', link_text: 'origin', },
+    'effective-script-origin': { func: browsers_helper, fragment: 'effective-script-origin', link_text: 'effective script origin', },
 
 
     'media-data-cannot-be-fetched': { func: fragment_helper, fragment: '', link_text: '&quot;<i>If the media data cannot be fetched at all, due to network errors, causing the user agent to give up trying to fetch the resource</i>&quot;', },