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

Unified Diff: trunk/src/net/data/websocket/connect_to.html

Issue 388493002: Revert 282307 "Map WebSocket URL schemes to HTTP URL schemes for..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | « trunk/src/net/data/websocket/README ('k') | trunk/src/net/http/http_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/data/websocket/connect_to.html
===================================================================
--- trunk/src/net/data/websocket/connect_to.html (revision 282330)
+++ trunk/src/net/data/websocket/connect_to.html (working copy)
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>test ws connection</title>
-<script type="text/javascript">
-
-var href = window.location.href;
-var queryBegin = href.indexOf('?url=');
-if (queryBegin == -1) {
- console.log("Failed to find ?url= in URL");
- document.title = 'FAIL';
- throw "FAILURE";
-}
-var url = href.slice(queryBegin + 5);
-
-// Do connection test.
-var ws = new WebSocket(url);
-
-ws.onopen = function()
-{
- // Set document title to 'PASS'. The test observer catches this title changes
- // to know the result.
- document.title = 'PASS';
-}
-
-ws.onclose = function()
-{
- // Set document title to 'FAIL'.
- document.title = 'FAIL';
-}
-
-</script>
-</head>
-</html>
« no previous file with comments | « trunk/src/net/data/websocket/README ('k') | trunk/src/net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698