Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /websockets/mixed-content.https.any.html - WPT Dashboard Interop Dashboard
- /websockets/mixed-content.https.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /websockets/mixed-content.https.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /websockets/mixed-content.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker
// META: script=constants.sub.js
test(() => {
assert_throws_dom('SecurityError', () => CreateInsecureWebSocket(),
'constructor should throw');
}, 'constructing an insecure WebSocket in a secure context should throw');