Commit 20cc784
committed
[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@main1 parent 4bdbd3c commit 20cc784
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| |||
0 commit comments