HTML5 Tracker

Diff (omit for latest revision)
Filter

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

SVNBugCommentTime (UTC)
3472Fix EventSource GC rules.2009-07-27 22:33
Index: source
===================================================================
--- source	(revision 3471)
+++ source	(revision 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>

|