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

Unified Diff: net/data/websocket/count_connection.html

Issue 390773002: [WebSocket] Send a close frame when the renderer process is gone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « net/data/websocket/count-connection_wsh.py ('k') | net/data/websocket/counted_connection.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/websocket/count_connection.html
diff --git a/net/data/websocket/count_connection.html b/net/data/websocket/count_connection.html
new file mode 100644
index 0000000000000000000000000000000000000000..b523a4740f710df33d1352520ce793ebc92cd730
--- /dev/null
+++ b/net/data/websocket/count_connection.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html>
+<head>
+<title>Connect to a WebSocket server</title>
+<script type="text/javascript">
+var protocol = location.protocol.replace('http', 'ws');
+var url = protocol + '//' + location.host + '/count-connection';
+
+// Do connection test.
+var ws = new WebSocket(url);
+
+ws.onmessage = function(e) {
+ document.title = (e.data === 'open: 1, closed: 1' ? 'PASS' : 'FAIL');
+}
+
+ws.onclose = function() {
+ document.title = 'FAIL';
+};
+
+</script>
+</head>
+</html>
« no previous file with comments | « net/data/websocket/count-connection_wsh.py ('k') | net/data/websocket/counted_connection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698