Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Issue 125190 EventSource: Events should not be dispatched after close()
Starred by 2 users Reported by vmuhac...@gmail.com, Apr 26 2012 Back to list
Status: Fixed
Owner: ----
Closed: Jul 2012
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Restricted
  • Only users with Commit permission may comment.



Sign in to add a comment
    After EventSource#close() method is called, no events should be fired and 
    readyState attribute should stay equal to EventSource.CLOSED
    See: http://html5.org/tools/web-apps-tracker?from=6771&to=6772 ,
         https://www.w3.org/Bugs/Public/show_bug.cgi?id=14331#c5

event-stream:
    :text/event-stream
    data: data0;
    
    
    data: data1;
    
    
    var es = new EventSource('...');
    var counter = 0;
    es.onmessage = function () {
      counter += 1;
      if (counter > 1) {
        alert('bug!');
      }
      es.close();
    };

 
Labels: -Area-Undefined Area-WebKit WebKit-WebSockets
(not really WebSockets, but that's the closest label I could find, and maybe folks working on that have some familiarity with the server-sent events code)

Comment 2 by yutak@chromium.org, May 2 2012
Cc: yutak@chromium.org
Labels: -OS-Windows -WebKit-WebSockets OS-All WebKit-WebApps WebKit-ID-85346
Status: Untriaged
Unfortunately I have never touched EventSource code, and I could not find a good owner as there seems no active developer on EventSource.

Anyway I filed a WebKit bug and cc'ed the original author: https://bugs.webkit.org/show_bug.cgi?id=85346

Putting WebKit-WebApps label which should be more appropriate than WebKit-WebSockets. Also setting OS-All as this seems platform independent.
Project Member Comment 3 by bugdroid1@chromium.org, May 2 2012
Labels: -WebKit-ID-85346 WebKit-ID-85346-NEW
Summary: Server sent events https://www.w3.org/Bugs/Public/show_bug.cgi?id=14331#c5 (was: NULL)
https://bugs.webkit.org/show_bug.cgi?id=85346
Comment 4 by yutak@chromium.org, May 2 2012
Summary: EventSource: Events should not be dispatched after close() (was: NULL)
Project Member Comment 5 by bugdroid1@chromium.org, Jun 26 2012
Labels: -WebKit-ID-85346-NEW WebKit-ID-85346-RESOLVED WebKit-Rev-121195
https://bugs.webkit.org/show_bug.cgi?id=85346
http://trac.webkit.org/changeset/121195
Comment 6 by yutak@chromium.org, Jul 11 2012
Status: Fixed
Given the WebKit change, I'd like to mark this bug as fixed.
Project Member Comment 7 by bugdroid1@chromium.org, Oct 13 2012
Labels: Restrict-AddIssueComment-Commit
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member Comment 8 by bugdroid1@chromium.org, Mar 11 2013
Labels: -Area-WebKit -WebKit-WebApps Cr-Content-WebApps Cr-Content
Project Member Comment 9 by bugdroid1@chromium.org, Apr 6 2013
Labels: -Cr-Content Cr-Blink
Sign in to add a comment