[Webkit-unassigned] [Bug 85346] New: EventSource: Events should not be dispatched after close()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 1 21:58:41 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85346

           Summary: EventSource: Events should not be dispatched after
                    close()
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yutak at chromium.org
                CC: sam at webkit.org, adam.bergkvist at ericsson.com


Original report: http://code.google.com/p/chromium/issues/detail?id=125190

Reported by VMuhachev, Apr 26 (5 days ago)
    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();
    };

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list