[Webkit-unassigned] [Bug 206064] New: EventSource Http Status: 200 but Showing Error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 10 05:56:41 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=206064
Bug ID: 206064
Summary: EventSource Http Status: 200 but Showing Error
Product: WebKit
Version: Safari 13
Hardware: Macintosh
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: parikhdhruvesh1 at gmail.com
CC: inspector-bugzilla-changes at group.apple.com
Created attachment 387331
--> https://bugs.webkit.org/attachment.cgi?id=387331&action=review
safari eventsource with close
When using EventSource (https://developer.mozilla.org/en-US/docs/Web/API/EventSource) library in Safari 13, with closing the connection when done,
Ex:
var source = new window.EventSource("someurl");
source.onmessage = function(event) {
source.close();
};
I am getting error in WebInspector inspite the status code is 200. Means behaviour is as intended, only showing error in WebInspector UI.
I have explained in image the same.
Image: bug-safari-eventsource-close.jpeg
When we are not closing the EventSource object it works fine
#source.close()
Can we solve this ?
Link: https://jsfiddle.net/parikhdhruvesh1/kxos7yjz/24/
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200110/99cd656b/attachment-0001.htm>
More information about the webkit-unassigned
mailing list