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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction.js

Issue 1931063004: Stop blocking 'http://127.0.0.1/' as mixed content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ugh. Created 4 years, 6 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
OLDNEW
1 function reportResult(msg) { 1 function reportResult(msg) {
2 if (self.opener) 2 if (self.opener)
3 self.opener.postMessage(msg, "*"); 3 self.opener.postMessage(msg, "*");
4 else if (self.top) 4 else if (self.top)
5 self.top.postMessage(msg, "*"); 5 self.top.postMessage(msg, "*");
6 else 6 else
7 postMessage(msg); 7 postMessage(msg);
8 } 8 }
9 9
10 (function () { 10 (function () {
11 try { 11 try {
12 var ws = new WebSocket("ws://127.0.0.1:8880/echo"); 12 var ws = new WebSocket("ws://example.test:8880/echo");
13 } catch (e) { 13 } catch (e) {
14 reportResult("DONE"); 14 reportResult("DONE");
15 return; 15 return;
16 } 16 }
17 reportResult("FAIL: No exception was thrown") 17 reportResult("FAIL: No exception was thrown")
18 })(); 18 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698