[html5] r3472 - [] (0) Fix EventSource GC rules.
whatwg at whatwg.org
whatwg at whatwg.org
Mon Jul 27 15:33:45 PDT 2009
Author: ianh
Date: 2009-07-27 15:33:44 -0700 (Mon, 27 Jul 2009)
New Revision: 3472
Modified:
source
Log:
[] (0) Fix EventSource GC rules.
Modified: source
===================================================================
--- source 2009-07-27 22:09:54 UTC (rev 3471)
+++ source 2009-07-27 22:33:44 UTC (rev 3472)
@@ -69649,9 +69649,14 @@
<h4>Garbage collection</h4>
- <p>An <code>EventSource</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>While an <code>EventSource</code> object's <code
+ title="dom-EventSource-readyState">readyState</code> is not <code
+ title="dom-EventSource-CLOSED">CLOSED</code>, and the object has one
+ or more event listeners registered for <code
+ title="event-message">message</code> events, there must be a strong
+ reference from the <code>Window</code> or <code>WorkerUtils</code>
+ object that the <code>EventSource</code> object's constructor was
+ invoked from to the <code>EventSource</code> object itself.</p>
<p>If an <code>EventSource</code> object is garbage collected while
its connection is still open, the connection must be closed.</p>
More information about the Commit-Watchers
mailing list