- From: Takeshi Yoshino <notifications@github.com>
- Date: Tue, 09 Jan 2018 02:23:19 -0800
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 9 January 2018 10:23:47 UTC
Chrome's algorithm is: - when a new chunk arrives before 50ms passes since the last chunk for that we dispatched a "progress" event, we schedule dispatching of a "progress" event after the 50ms passes. - when the end of data is signaled with such a scheduled dispatching pending, we flush it to dispatch a "progress" event before dispatching a "readyState" event followed by "load" and "loadend". - unless there's such a scheduled-but-pending dispatching, we don't fire any "progress" event on the end of data signal, but only "readyState", "load" and "loadend". Right, this is different from what the spec says. I remember that we had some discussion before and the following bug is one of them I think. But I don't remember whether we had any further discussion since that. https://www.w3.org/Bugs/Public/show_bug.cgi?id=26917 We also had some discussion regarding the corner case handling around dispatching of DONE. https://www.w3.org/Bugs/Public/show_bug.cgi?id=26736 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/xhr/issues/161#issuecomment-356242816
Received on Tuesday, 9 January 2018 10:23:47 UTC