Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1802)

Unified Diff: Source/modules/websockets/WebSocket.cpp

Issue 23201008: Active WebSocket should send closing handshake to server on page navigation or page close (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing! Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/websockets/WebSocket.cpp
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp
index 9016a538928649449bae969c589595524b5a0b9d..3c274a830cc8b3f88f7ce4acefe43f3e1a7b6057 100644
--- a/Source/modules/websockets/WebSocket.cpp
+++ b/Source/modules/websockets/WebSocket.cpp
@@ -505,6 +505,7 @@ void WebSocket::stop()
return;
}
if (m_channel) {
+ m_channel->close(WebSocketChannel::CloseEventCodeGoingAway, String());
m_channel->disconnect();
m_channel = 0;
}
« no previous file with comments | « LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698