[Webkit-unassigned] [Bug 205686] New: EventSource Status 200 but showing error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 2 07:35:23 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=205686
Bug ID: 205686
Summary: EventSource Status 200 but showing error
Product: WebKit
Version: Safari 13
Hardware: All
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 386606
--> https://bugs.webkit.org/attachment.cgi?id=386606&action=review
status 200 but showing error
When using eventsource https://developer.mozilla.org/en-US/docs/Web/API/EventSource api in Safari,
we are getting Response as Status: 200 OK but in Safari Inspector getting Response as Red. (Please check 200_OK_Response.png)
To replicate it create this page with the script as
<script>
var source = new window.EventSource(
"https://cdneast2-xch.media.net/AdExchange/rtbsspub?&gdpr=0&gdprconsent=1&cid=8CU6Q6626®ion=nv&ptrid=8PRL4E7N3&requestString=881672292*84%7C1x1_TNG7O25_1%7C8CU6Q6626%7C881672292&crid=881672292&sd=3&requrl=http%3A%2F%2Fhblocal.media.net%2Ftest%2Fscroll-page-test.php&bl=1&rt=5&dn=http://hblocal.media.net&https=0&act=cache&prvReqId=373632267375476031576859414904&erTr=0&hlt=1&ugd=4&adt=desktop&kwrf=http%3A%2F%2Fhblocal.media.net&tr=0.15479458203630414&ndec=1&scrsize=1920x1080&taginfo=%7B%7D&pageinfo=%7B%22vw%22%3A1852%2C%22vh%22%3A468%2C%22ph%22%3A468%7D&itype=HB&sid=7305&tmt=300&at=3&prid=8PRVCXX19&dma=635&cc=US&rc=TX&ct=SANMARCOS",
{withCredentials:true}
);
source.addEventListener("close", function (event) {
if (!event) {
return;
}
if (event.data === "CLOSE") {
source.close();
window.console.log("it is closed");
}
}, false);
</script>
and check in Safari Inspector
--
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/20200102/6fd0410d/attachment.htm>
More information about the webkit-unassigned
mailing list