[html5] r5184 - [giow] (1) Make WebSocket's garbage collection behaviour a little less detectabl [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 22 12:09:45 PDT 2010


Author: ianh
Date: 2010-07-22 12:09:44 -0700 (Thu, 22 Jul 2010)
New Revision: 5184

Modified:
   complete.html
   source
Log:
[giow] (1) Make WebSocket's garbage collection behaviour a little less detectable and more intuitive.

Modified: complete.html
===================================================================
--- complete.html	2010-07-22 19:01:23 UTC (rev 5183)
+++ complete.html	2010-07-22 19:09:44 UTC (rev 5184)
@@ -72174,10 +72174,24 @@
 
   <h5 id=garbage-collection-1><span class=secno>10.3.3.2 </span>Garbage collection</h5>
 
-  <p>A <code><a href=#websocket>WebSocket</a></code> object with an open connection must not
-  be garbage collected if there are any event listeners registered for
-  <code title=event-message><a href=#event-message>message</a></code> events.</p>
+  <p>A <code><a href=#websocket>WebSocket</a></code> object whose <code title=dom-WebSocket-readyState><a href=#dom-websocket-readystate>readyState</a></code> attribute's value
+  was set to <code title=dom-WebSocket-CONNECTING><a href=#dom-websocket-connecting>CONNECTING</a></code>
+  (0) as of the last time the <a href=#event-loop>event loop</a> started
+  executing a <a href=#concept-task title=concept-task>task</a> must not be
+  garbage collected if there are any event listeners registered for
+  <code title=event-open>open</code> events, <code title=event-message><a href=#event-message>message</a></code> events, <code title=event-error>error</code> events, or <code title=event-close>close</code> events.</p>
 
+  <p>A <code><a href=#websocket>WebSocket</a></code> object whose <code title=dom-WebSocket-readyState><a href=#dom-websocket-readystate>readyState</a></code> attribute's value
+  was set to <code title=dom-WebSocket-OPEN><a href=#dom-websocket-open>OPEN</a></code> (1) as of
+  the last time the <a href=#event-loop>event loop</a> started executing a <a href=#concept-task title=concept-task>task</a> must not be garbage collected if
+  there are any event listeners registered for <code title=event-message><a href=#event-message>message</a></code> events, <code title=event-error>error</code> events, or <code title=event-close>close</code> events.</p>
+
+  <p>A <code><a href=#websocket>WebSocket</a></code> object whose <code title=dom-WebSocket-readyState><a href=#dom-websocket-readystate>readyState</a></code> attribute's value
+  was set to <code title=dom-WebSocket-CLOSING><a href=#dom-websocket-closing>CLOSING</a></code> (2) as
+  of the last time the <a href=#event-loop>event loop</a> started executing a
+  <a href=#concept-task title=concept-task>task</a> must not be garbage collected
+  if there are any event listeners registered for <code title=event-close>close</code> events.</p>
+
   <p>If a <code><a href=#websocket>WebSocket</a></code> object is garbage collected while its
   connection is still open, the user agent must <a href=#close-the-websocket-connection>close the
   WebSocket connection</a>.</p>

Modified: source
===================================================================
--- source	2010-07-22 19:01:23 UTC (rev 5183)
+++ source	2010-07-22 19:09:44 UTC (rev 5184)
@@ -81215,10 +81215,35 @@
 
   <h5>Garbage collection</h5>
 
-  <p>A <code>WebSocket</code> object with an open connection must not
-  be garbage collected if there are any event listeners registered for
-  <code title="event-message">message</code> events.</p>
+  <p>A <code>WebSocket</code> object whose <code
+  title="dom-WebSocket-readyState">readyState</code> attribute's value
+  was set to <code title="dom-WebSocket-CONNECTING">CONNECTING</code>
+  (0) as of the last time the <span>event loop</span> started
+  executing a <span title="concept-task">task</span> must not be
+  garbage collected if there are any event listeners registered for
+  <code title="event-open">open</code> events, <code
+  title="event-message">message</code> events, <code
+  title="event-error">error</code> events, or <code
+  title="event-close">close</code> events.</p>
 
+  <p>A <code>WebSocket</code> object whose <code
+  title="dom-WebSocket-readyState">readyState</code> attribute's value
+  was set to <code title="dom-WebSocket-OPEN">OPEN</code> (1) as of
+  the last time the <span>event loop</span> started executing a <span
+  title="concept-task">task</span> must not be garbage collected if
+  there are any event listeners registered for <code
+  title="event-message">message</code> events, <code
+  title="event-error">error</code> events, or <code
+  title="event-close">close</code> events.</p>
+
+  <p>A <code>WebSocket</code> object whose <code
+  title="dom-WebSocket-readyState">readyState</code> attribute's value
+  was set to <code title="dom-WebSocket-CLOSING">CLOSING</code> (2) as
+  of the last time the <span>event loop</span> started executing a
+  <span title="concept-task">task</span> must not be garbage collected
+  if there are any event listeners registered for <code
+  title="event-close">close</code> events.</p>
+
   <p>If a <code>WebSocket</code> object is garbage collected while its
   connection is still open, the user agent must <span>close the
   WebSocket connection</span>.</p>




More information about the Commit-Watchers mailing list