Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit ff8486d

Browse files
Hexcleslukebjerring
authored andcommitted
[html] Use documented nonexistent instead of foo (#17979)
* [html] Use documented `nonexistent` instead of foo The idlharness test needs a dummy WebSocket object with a failed connection. This should be done using the documented `nonexistent` subdomain instead of `foo` which could resolve successfully in certain network environments. Fixes #17977. * Revise to use get-host-info.sub.js
1 parent 74026f1 commit ff8486d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

html/dom/interfaces.https.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<script src=/resources/testharness.js></script>
99
<script src=/resources/testharnessreport.js></script>
1010
<script src=/common/subset-tests-by-key.js></script>
11+
<script src=/common/get-host-info.sub.js></script>
1112
<script src=/resources/WebIDLParser.js></script>
1213
<script src=/resources/idlharness.js></script>
1314

@@ -200,7 +201,8 @@ <h1>HTML IDL tests</h1>
200201
PeerConnection: [],
201202
MediaStreamEvent: [],
202203
ErrorEvent: [],
203-
WebSocket: ['new WebSocket("wss://foo")'],
204+
// https://web-platform-tests.org/writing-tests/server-features.html?tests-involving-multiple-origins
205+
WebSocket: ['new WebSocket("wss://nonexistent.' + get_host_info().ORIGINAL_HOST + '")'],
204206
CloseEvent: ['new CloseEvent("close")'],
205207
AbstractWorker: [],
206208
Worker: [],

0 commit comments

Comments
 (0)