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

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: 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
Index: Source/modules/websockets/WebSocket.cpp
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp
index 9016a538928649449bae969c589595524b5a0b9d..550312e1cf2432256378fe8ef5c43e3f70f260c0 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, "");
tyoshino (SeeGerritForStatus) 2013/08/20 03:07:07 let me correct. please use String() for consistenc
m_channel->disconnect();
m_channel = 0;
}

Powered by Google App Engine
This is Rietveld 408576698