[Webkit-unassigned] [Bug 113748] New: EventSource 'close' event doesn't fire when computer put in sleep mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 1 23:15:18 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=113748
Summary: EventSource 'close' event doesn't fire when computer
put in sleep mode
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mdean8 at uis.edu
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.
--
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