WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
34967
Safari calls onclose event handler in close() call.
https://bugs.webkit.org/show_bug.cgi?id=34967
Summary
Safari calls onclose event handler in close() call.
Fumitoshi Ukai
Reported
2010-02-15 21:59:04 PST
Safai calls onclose event handler in close() call. WebSocket API spec says, the close() must close the Web Socket connection, and closing the connection immediately cause a task to be queued to fire a close event. So, onclose event handler should be fired after javascript code that includes close() method call finished. See
https://bugs.webkit.org/show_bug.cgi?id=34636
Attachments
Add attachment
proposed patch, testcase, etc.
Anne van Kesteren
Comment 1
2023-05-09 05:55:20 PDT
https://github.com/WebKit/WebKit/blob/main/Source/WebCore/Modules/websockets/WebSocket.cpp#L414C1-L441
appears to delegate to the channel now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug