[Webkit-unassigned] [Bug 247943] REGRESSION (Safari 15.6.1-16.1): WebSocket in latest Safari does not emit onclose event when internet is turned off (wifi or cellular)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 16 07:06:28 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=247943

--- Comment #6 from Mike <poremba at nolimit.sk> ---
Notice that on iPhone when locked screen or minimized Safari with debug tool website https://dev.bikeapp.sk/apple-bugs/debug/ , WebSocket onclose is fired immediately. And user much more locks phone and much more minimizes app then turning internet off and on. So when onclose is fired with lock/minimize why could not be also fired on internet disconnection as in the past versions? What sense has this new behavior please? It keeps old WebSocket connection in readyState OPEN after internet disconnected but connection is not reliable when internet is connected again (connection could be not working after what amount of time after disconnect/connect?) so developer must anyway on internet disconnected close origin websocket connection manually and on internet connected open new one. This new behavior just breaks reconnect mechanism based on close event verified over the years in many webapps.

-- 
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/20221116/d9f43116/attachment.htm>


More information about the webkit-unassigned mailing list