Bug 113748

Summary: EventSource 'close' event doesn't fire when computer put in sleep mode
Product: WebKit Reporter: mdean8
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: ap, cmuppala, herr.ernst
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

mdean8
Reported 2013-04-01 23:13:30 PDT
var source = new EventSource(url); source.onopen = function() { console.log('opened'); }; source.onclose = function() { console.log('closed'); }; Reproduction steps: 1. Run the above code, where url points to a web page that supports SSE 2. Put your computer in sleep mode 3. Take your computer out of sleep mode 4. console.log(source.readyState == EventSource.CLOSED); // will print true The 'close' event should be fired because the connection was cancelled and the object's readyState was set to EventSource.CLOSED.
Attachments
Note You need to log in before you can comment on or make changes to this bug.