HTML5 Tracker

Diff (omit for latest revision)
Filter

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

SVNBugCommentTime (UTC)
6251[Gecko] [Internet Explorer] [Opera] [Webkit] appcache: only allow text/cache-manifest with no parameters or with a charset=utf-8 parameter.2011-06-17 00:41
Index: source
===================================================================
--- source	(revision 6250)
+++ source	(revision 6251)
@@ -75305,12 +75305,16 @@
     doesn't matter, since this can never be cross-origin -->
 
     <p>If the resource is labeled with the <span>MIME type</span>
-    <code>text/cache-manifest</code>, parse <var
-    title="">manifest</var> according to the <span title="parse a
-    manifest">rules for parsing manifests</span>, obtaining a list of
-    <span title="concept-appcache-explicit">explicit entries</span>,
-    <span title="concept-appcache-fallback">fallback entries</span>
-    and the <span title="concept-appcache-fallback-ns">fallback
+    <code>text/cache-manifest</code>, either with no parameters or
+    with a single parameter with the name "<code
+    title="">charset</code>" whose value is an <span>ASCII
+    case-insensitive</span> match for the string "<code
+    title="">utf-8</code>", parse <var title="">manifest</var>
+    according to the <span title="parse a manifest">rules for parsing
+    manifests</span>, obtaining a list of <span
+    title="concept-appcache-explicit">explicit entries</span>, <span
+    title="concept-appcache-fallback">fallback entries</span> and the
+    <span title="concept-appcache-fallback-ns">fallback
     namespaces</span> that map to them, entries for the <span
     title="concept-appcache-onlinewhitelist">online whitelist</span>,
     and a value for the <span
@@ -75396,8 +75400,9 @@
     cancels the download, or the parser for manifests fails when
     checking the magic signature), or if the server returned a
     redirect, or if the resource is labeled with a <span>MIME
-    type</span> other than <code>text/cache-manifest</code>, then run
-    the <span>cache failure steps</span>. <a
+    type</span> other than <code>text/cache-manifest</code> or has
+    parameters that do not match the conditions listed earlier, then
+    run the <span>cache failure steps</span>. <a
     href="#refsHTTP">[HTTP]</a></p>
 
    </li>
@@ -89501,11 +89506,11 @@
 
   <p>HTTP 200 OK responses with a <span>Content-Type</span> header
   specifying the type <code>text/event-stream</code>, either with no
-  parameters or with a single parameter whose name is "<code
-  title="">charset</code>" and whose value is an <span>ASCII
-  case-insensitive match</span> for "UTF-8", must be processed line by
-  line <a href="#event-stream-interpretation">as described
-  below</a>.</p>
+  parameters or with a single parameter with the name "<code
+  title="">charset</code>" whose value is an <span>ASCII
+  case-insensitive</span> match for the string "<code
+  title="">utf-8</code>", must be processed line by line <a
+  href="#event-stream-interpretation">as described below</a>.</p>
 
   <p>When a successful response with a supported <span>MIME
   type</span> is received, such that the user agent begins parsing the

|