html5/spec embedded-content-1.html,1.7,1.8 fetching-resources.html,1.5,1.6 offline.html,1.987,1.988 spec.html,1.1044,1.1045 video.html,1.868,1.869

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv22351

Modified Files:
	embedded-content-1.html fetching-resources.html offline.html 
	spec.html video.html 
Log Message:
Captions - Stage 11.3: completed the external timed track download processing model, and did some more work on parsing WebSRT. Also: Update the 'fetch' algorithm to support doing same-origin enforcing, and made various parts of the spec use it; also made parts of the spec that acted like the algorith was sync actually invoke it that way. (whatwg r5111)

[updated by splitter]


Index: fetching-resources.html
===================================================================
RCS file: /sources/public/html5/spec/fetching-resources.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- fetching-resources.html	22 Jun 2010 10:26:44 -0000	1.5
+++ fetching-resources.html	25 Jun 2010 19:26:57 -0000	1.6
@@ -327,16 +327,23 @@
 
   <p>When a user agent is to <dfn id="fetch">fetch</dfn> a resource or
   <a href="urls.html#url">URL</a>, optionally from an origin <i title="">origin</i>,
-  and optionally with a <i>synchronous flag</i> and/or a <i>manual
-  redirect flag</i>, the following steps must be run. (When a
-  <em>URL</em> is to be fetched, the URL identifies a resource to be
-  obtained.)</p>
+  and optionally with a <i>synchronous flag</i>, a <i>manual redirect
+  flag</i>, and/or a <i>force same-origin flag</i>, the following
+  steps must be run. (When a <em>URL</em> is to be fetched, the URL
+  identifies a resource to be obtained.)</p>
 
   <!-- if invoked with the synchronous flag, make sure to release the
   storage mutex first -->
 
-  <!-- synchronous flag is only used by sync-XHR, for legacy reasons;
-  don't use it in new features! -->
+  <!-- synchronous flag is only to be used in algorithms that are
+  themselves asynchronous! Only sync-XHR is allowed to make the
+  mistake of screwing that up. :-P -->
+
+  <!-- the force same-origin flag is for use in places where we'll be
+  moving to CORS one day; when used, the algorithm must be invoked
+  with a URL (not something else, like a POST request) whose origin is
+  the same as the /origin/, which must also be present, and the
+  algorithm must not be invoked with the manual redirect flag. -->
 
   <ol><li>
 
@@ -433,7 +440,19 @@
     <p>If the fetched resource is an HTTP redirect <a href="#concept-http-equivalent-codes" title="concept-http-equivalent-codes">or equivalent</a>,
     then:</p>
 
-    <dl class="switch"><dt>If the <i>manual redirect flag</i> is set</dt>
+    <dl class="switch"><dt>If the <i>force same-origin flag</i> is set and the
+     <a href="urls.html#url">URL</a> of the target of the redirect does not have the
+     <a href="origin-0.html#same-origin">same origin</a> as the <a href="urls.html#url">URL</a> for which the
+     <a href="#fetch">fetch</a> algorithm was invoked</dt>
+
+     <dd>
+
+      <p>Abort these steps and return failure from this algorithm, as
+      if the remote host could not be contacted.</p>
+
+     </dd>
+
+     <dt>If the <i>manual redirect flag</i> is set</dt>
 
      <dd>
 

Index: embedded-content-1.html
===================================================================
RCS file: /sources/public/html5/spec/embedded-content-1.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- embedded-content-1.html	22 Jun 2010 10:26:44 -0000	1.7
+++ embedded-content-1.html	25 Jun 2010 19:26:57 -0000	1.8
@@ -439,7 +439,7 @@
   <p>If the image was not fetched (e.g. because the UA's image support
   is disabled, or because the <code title="attr-img-src"><a href="#attr-img-src">src</a></code>
   attribute's value is the empty string, or if the conditions in the
-  previous paragraph are not met, then the image is <em>not</em> <i title="img-available"><a href="#img-available">available</a></i>.</p>
+  previous paragraph are not met), then the image is <em>not</em> <i title="img-available"><a href="#img-available">available</a></i>.</p>
 
   <p>Whether the image is fetched successfully or not (e.g. whether
   the response code was a 2xx code <a href="fetching-resources.html#concept-http-equivalent-codes" title="concept-http-equivalent-codes">or equivalent</a>) must be

Index: video.html
===================================================================
RCS file: /sources/public/html5/spec/video.html,v
retrieving revision 1.868
retrieving revision 1.869
diff -u -d -r1.868 -r1.869
--- video.html	22 Jun 2010 10:26:47 -0000	1.868
+++ video.html	25 Jun 2010 19:26:57 -0000	1.869
@@ -1526,8 +1526,9 @@
 
     <p>Begin to <a href="fetching-resources.html#fetch">fetch</a> the <var title="">current media
     resource</var>, from the <a href="#media-element">media element</a>'s
-    <code><a href="infrastructure.html#document">Document</a></code>'s <a href="origin-0.html#origin">origin</a>.</p> <!-- not
-    http-origin privacy sensitive (looking forward to CORS here) -->
+    <code><a href="infrastructure.html#document">Document</a></code>'s <a href="origin-0.html#origin">origin</a>, with the <i>force
+    same-origin flag</i> set.</p> <!-- not http-origin privacy
+    sensitive (looking forward to CORS here) -->
 
     <p>Every 350ms (&#177;200ms) or for every byte received, whichever
     is <em>least</em> frequent, <a href="webappapis.html#queue-a-task">queue a task</a> to

Index: offline.html
===================================================================
RCS file: /sources/public/html5/spec/offline.html,v
retrieving revision 1.987
retrieving revision 1.988
diff -u -d -r1.987 -r1.988
--- offline.html	22 Jun 2010 10:26:46 -0000	1.987
+++ offline.html	25 Jun 2010 19:26:57 -0000	1.988
@@ -1218,9 +1218,10 @@
    <li>
 
     <p><i>Fetching the manifest</i>: <a href="fetching-resources.html#fetch">Fetch</a> the resource
-    from <var title="">manifest URL</var>, and let <var title="">manifest</var> be that resource.</p> <!-- http-origin
-    privacy sensitive, though it doesn't matter, since this can never
-    be cross-origin -->
+    from <var title="">manifest URL</var> with the <i>synchronous
+    flag</i> set, and let <var title="">manifest</var> be that
+    resource.</p> <!-- http-origin privacy sensitive, though it
+    doesn't matter, since this can never be cross-origin -->
 
     <p>If the resource is labeled with the <a href="infrastructure.html#mime-type">MIME type</a>
     <code><a href="iana.html#text-cache-manifest">text/cache-manifest</a></code>, parse <var title="">manifest</var> according to the <a href="#parse-a-manifest" title="parse a
@@ -1457,14 +1458,15 @@
      <li>
 
       <p><a href="fetching-resources.html#fetch">Fetch</a> the resource, from the <a href="origin-0.html#origin">origin</a>
-      of the <a href="urls.html#url">URL</a> <var title="">manifest URL</var>. If
-      this is an <a href="#concept-appcache-upgrade" title="concept-appcache-upgrade">upgrade
-      attempt</a>, then use the <a href="#concept-appcache-newer" title="concept-appcache-newer">newest</a> <a href="#application-cache">application
-      cache</a> in <var title="">cache group</var> as an HTTP
-      cache, and honor HTTP caching semantics (such as expiration,
-      ETags, and so forth) with respect to that cache. User agents may
-      also have other caches in place that are also honored.</p> <!--
-      not http-origin privacy sensitive -->
+      of the <a href="urls.html#url">URL</a> <var title="">manifest URL</var>, with
+      the <i>synchronous flag</i> set and the <i>manual redirect
+      flag</i> set. If this is an <a href="#concept-appcache-upgrade" title="concept-appcache-upgrade">upgrade attempt</a>, then
+      use the <a href="#concept-appcache-newer" title="concept-appcache-newer">newest</a>
+      <a href="#application-cache">application cache</a> in <var title="">cache
+      group</var> as an HTTP cache, and honor HTTP caching semantics
+      (such as expiration, ETags, and so forth) with respect to that
+      cache. User agents may also have other caches in place that are
+      also honored.</p> <!-- not http-origin privacy sensitive -->
 
       <p class="note">If the resource in question is already being
       downloaded for other reasons then the existing download process
@@ -1640,9 +1642,10 @@
    <li>
 
     <p><a href="fetching-resources.html#fetch">Fetch</a> the resource from <var title="">manifest
-    URL</var> again, and let <var title="">second manifest</var> be
-    that resource.</p> <!-- http-origin privacy sensitive, though it
-    doesn't matter, since this can never be cross-origin -->
+    URL</var> again, with the <i>synchronous flag</i> set, and let
+    <var title="">second manifest</var> be that resource.</p> <!--
+    http-origin privacy sensitive, though it doesn't matter, since
+    this can never be cross-origin -->
 
    </li>
 

Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec/spec.html,v
retrieving revision 1.1044
retrieving revision 1.1045
diff -u -d -r1.1044 -r1.1045
--- spec.html	24 Jun 2010 22:26:51 -0000	1.1044
+++ spec.html	25 Jun 2010 19:26:57 -0000	1.1045
@@ -334,7 +334,7 @@
     <a href="Overview.html">single page HTML</a>,
     <a href="spec.html">multipage HTML</a>,
     <a href="author/">author edition</a>.
-This is revision 1.4104.
+This is revision 1.4105.
    </p> 
      <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
    &#169; 2010 <a href="http://www.w3.org/"><abbr title="World Wide

Received on Friday, 25 June 2010 19:27:01 UTC