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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>test ws connection</title>
5 <script type="text/javascript">
6
7 var href = window.location.href;
8 var queryBegin = href.indexOf('?url=');
9 if (queryBegin == -1) {
10 console.log("Failed to find ?url= in URL");
11 document.title = 'FAIL';
12 throw "FAILURE";
13 }
14 var url = href.slice(queryBegin + 5);
15
16 // Do connection test.
17 var ws = new WebSocket(url);
18
19 ws.onopen = function()
20 {
21 // Set document title to 'PASS'. The test observer catches this title changes
22 // to know the result.
23 document.title = 'PASS';
24 }
25
26 ws.onclose = function()
27 {
28 // Set document title to 'FAIL'.
29 document.title = 'FAIL';
30 }
31
32 </script>
33 </head>
34 </html>
OLDNEW
« 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