readyState 3 fires many times per chunk
Categories
(Core :: DOM: Networking, defect, P3)
Tracking
()
People
(Reporter: marc, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Steps to reproduce:
Here is my workaround, this code has worked since IE7:
https://github.com/tinspin/fuse/commit/41118f1cb0f4493e80ae13d8a995f295325312e2
Actual results:
You are calling onreadystatechange with readyState == 3 many times per chunk in a comet-stream.
Expected results:
Like it works in Chrome, ONE onreadystatechange with readyState == 3 per chunk.
Comment 1•2 years ago
|
||
marc, thanks for filing this!
Olli, Kershaw, have we changed readystatechange
behavior recently? Can it fire more than once per chunk in Fx at the moment?
(This is a follow-up from discussion in bug 447689.)
There is an easy way to reproduce this:
Go to http://fuse.rupy.se and login on two browsers.
Click the firefox username and press the other name in the user list.
Then press join to send an invite, if you send from chrome -> firefox you'll se an arbitrary amount of poll|join|<name>||hejsan in the console.
From firefox -> chrome/safari you always get one!
It can be my bug but I'm pretty sure it's not because I have no differentiation in the code between modern browsers, only IE is treated with that.
Ok, you should be able to edit comment here..
*Click the other name in the user list.
Comment 4•2 years ago
|
||
I am not aware of any recent change about readystatechange
.
I also tried to reproduce this with the steps in comment #2, but I can't reproduce this. I only saw one poll|join|<name>||hejsan
in the console.
Could you try to help us by using mozregression to find out which firefox version breaks this?
Or could you provide a simple test sample that shows this issue?
Thanks.
I'm using 97.
You mean you never saw this: http://move.rupy.se/file/ff.png <-- this is wrong the message comes twice...
That is surprising.
I'll wait a few upgrades and try again.
Updated•2 years ago
|
Description
•