Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4028de758439cb29e65eb20ccc822a032816f326
https://github.com/WebKit/WebKit/commit/4028de758439cb29e65eb20ccc822a032816f326
Author: Przemyslaw Gorszkowski <[email protected]>
Date: 2025-12-07 (Sun, 07 Dec 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/websockets/back-forward-cache-with-open-websocket-connection-and-close-it-in-pagehide.window-expected.txt
M Source/WebCore/Modules/websockets/WebSocket.cpp
Log Message:
-----------
[BFCache][WebSocket] don't dispatch error if websocket is closed in pagehide
https://bugs.webkit.org/show_bug.cgi?id=303619
Reviewed by Alexey Proskuryakov.
When the WebSocket is suspending and it was closed, or it is in the
middle of closing, it does not need to be closed separately (and dispatch
the error event).
There is already WPT test for that case. Now the test passes.
*
LayoutTests/imported/w3c/web-platform-tests/websockets/back-forward-cache-with-open-websocket-connection-and-close-it-in-pagehide.window-expected.txt:
* Source/WebCore/Modules/websockets/WebSocket.cpp:
(WebCore::WebSocket::suspend):
Canonical link: https://commits.webkit.org/304082@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications