[html5] r6252 - [giow] (0) Make sure close() on EventSource works well with fetch().

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 16 17:46:28 PDT 2011


Author: ianh
Date: 2011-06-16 17:46:27 -0700 (Thu, 16 Jun 2011)
New Revision: 6252

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Make sure close() on EventSource works well with fetch().

Modified: complete.html
===================================================================
--- complete.html	2011-06-17 00:41:25 UTC (rev 6251)
+++ complete.html	2011-06-17 00:46:27 UTC (rev 6252)
@@ -78901,10 +78901,10 @@
   changes.</p>
 
   <p>The <dfn id=dom-eventsource-close title=dom-EventSource-close><code>close()</code></dfn>
-  method must close the connection, if any; must abort any
-  reconnection attempt, if any; and must set the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute to
-  <code title=dom-EventSource-CLOSED><a href=#dom-eventsource-closed>CLOSED</a></code>. If the
-  connection is already closed, the method must do nothing.</p>
+  method must close the connection, if any; must abort any instances
+  of the <a href=#fetch>fetch</a> algorithm started for this
+  <code><a href=#eventsource>EventSource</a></code> object; and must set the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute to
+  <code title=dom-EventSource-CLOSED><a href=#dom-eventsource-closed>CLOSED</a></code>.</p>
 
   <p>The following are the <a href=#event-handlers>event handlers</a> (and their
   corresponding <a href=#event-handler-event-type title="event handler event type">event handler
@@ -79015,18 +79015,19 @@
   task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-open>open</code> at the
   <code><a href=#eventsource>EventSource</a></code> object.</p>
 
-  <p>When a user agent is to <dfn id=reestablish-the-connection>reestablish the connection</dfn>, the user
-  agent must set the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute to
+  <p>When a user agent is to <dfn id=reestablish-the-connection>reestablish the connection</dfn>,
+  the user agent must set the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute to
   <code title=dom-EventSource-CONNECTING><a href=#dom-eventsource-connecting>CONNECTING</a></code>,
   <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named
   <code title=event-error>error</code> at the
-  <code><a href=#eventsource>EventSource</a></code> object, and then <a href=#fetch>fetch</a> the
-  event source resource again after a delay equal to the reconnection
-  time of the event source, from the same <a href=#origin>origin</a> as the
-  original request triggered by the <code title=dom-EventSource><a href=#dom-eventsource>EventSource()</a></code>
-  constructor. <strong>Only if the user agent <a href=#reestablish-the-connection title="reestablish the
-  connection">reestablishes the connection</a> does the connection get
-  opened anew!</strong></p>
+  <code><a href=#eventsource>EventSource</a></code> object, and then, after a delay equal to
+  the reconnection time of the event source, if the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute is
+  still set to <code title=dom-EventSource-CONNECTING><a href=#dom-eventsource-connecting>CONNECTING</a></code>,
+  <a href=#fetch>fetch</a> the event source resource again from the same
+  <a href=#origin>origin</a> as the original request triggered by the <code title=dom-EventSource><a href=#dom-eventsource>EventSource()</a></code> constructor.
+  <strong>Only if the user agent <a href=#reestablish-the-connection title="reestablish the
+  connection">reestablishes the connection</a> does the connection
+  get opened anew!</strong></p>
 
   <p>When a user agent is to <dfn id=fail-the-connection>fail the connection</dfn>, the user
   agent must set the <code title=dom-EventSource-readyState><a href=#dom-eventsource-readystate>readyState</a></code> attribute to
@@ -100478,7 +100479,9 @@
   Henry Mason,
   Hugh Winkler,
   Ian Bicking,
+  Ian Clelland,
   Ian Davis,
+  Ian Fette,
   Ignacio Javier,
   Ivan Enderlin,
   Ivo Emanuel Gonçalves,

Modified: index
===================================================================
--- index	2011-06-17 00:41:25 UTC (rev 6251)
+++ index	2011-06-17 00:46:27 UTC (rev 6252)
@@ -96230,7 +96230,9 @@
   Henry Mason,
   Hugh Winkler,
   Ian Bicking,
+  Ian Clelland,
   Ian Davis,
+  Ian Fette,
   Ignacio Javier,
   Ivan Enderlin,
   Ivo Emanuel Gonçalves,

Modified: source
===================================================================
--- source	2011-06-17 00:41:25 UTC (rev 6251)
+++ source	2011-06-17 00:46:27 UTC (rev 6252)
@@ -89433,11 +89433,11 @@
   changes.</p>
 
   <p>The <dfn title="dom-EventSource-close"><code>close()</code></dfn>
-  method must close the connection, if any; must abort any
-  reconnection attempt, if any; and must set the <code
+  method must close the connection, if any; must abort any instances
+  of the <span>fetch</span> algorithm started for this
+  <code>EventSource</code> object; and must set the <code
   title="dom-EventSource-readyState">readyState</code> attribute to
-  <code title="dom-EventSource-CLOSED">CLOSED</code>. If the
-  connection is already closed, the method must do nothing.</p>
+  <code title="dom-EventSource-CLOSED">CLOSED</code>.</p>
 
   <p>The following are the <span>event handlers</span> (and their
   corresponding <span title="event handler event type">event handler
@@ -89574,20 +89574,23 @@
   title="event-open">open</code> at the
   <code>EventSource</code> object.</p>
 
-  <p>When a user agent is to <dfn>reestablish the connection</dfn>, the user
-  agent must set the <code
+  <p>When a user agent is to <dfn>reestablish the connection</dfn>,
+  the user agent must set the <code
   title="dom-EventSource-readyState">readyState</code> attribute to
   <code title="dom-EventSource-CONNECTING">CONNECTING</code>,
   <span>queue a task</span> to <span>fire a simple event</span> named
   <code title="event-error">error</code> at the
-  <code>EventSource</code> object, and then <span>fetch</span> the
-  event source resource again after a delay equal to the reconnection
-  time of the event source, from the same <span>origin</span> as the
-  original request triggered by the <code
-  title="dom-EventSource">EventSource()</code>
-  constructor. <strong>Only if the user agent <span title="reestablish the
-  connection">reestablishes the connection</span> does the connection get
-  opened anew!</strong></p>
+  <code>EventSource</code> object, and then, after a delay equal to
+  the reconnection time of the event source, if the <code
+  title="dom-EventSource-readyState">readyState</code> attribute is
+  still set to <code
+  title="dom-EventSource-CONNECTING">CONNECTING</code>,
+  <span>fetch</span> the event source resource again from the same
+  <span>origin</span> as the original request triggered by the <code
+  title="dom-EventSource">EventSource()</code> constructor.
+  <strong>Only if the user agent <span title="reestablish the
+  connection">reestablishes the connection</span> does the connection
+  get opened anew!</strong></p>
 
   <p>When a user agent is to <dfn>fail the connection</dfn>, the user
   agent must set the <code
@@ -114692,7 +114695,9 @@
   Henry Mason,
   Hugh Winkler,
   Ian Bicking,
+  Ian Clelland,
   Ian Davis,
+  Ian Fette,
   Ignacio Javier,
   Ivan Enderlin,
   Ivo Emanuel Gonçalves,




More information about the Commit-Watchers mailing list