forked from mirrors/gecko-dev
Differential Revision: https://phabricator.services.mozilla.com/D44149 --HG-- extra : moz-landing-system : lando
19 lines
393 B
HTML
19 lines
393 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<script>
|
|
onload = function() {
|
|
function done(success) {
|
|
var bc = new BroadcastChannel("test_channel");
|
|
bc.postMessage({success});
|
|
bc.close();
|
|
}
|
|
try {
|
|
new WebSocket("ws://mochi.test:8888/tests/dom/websocket/tests/file_websocket_basic");
|
|
done(true); // no hang!
|
|
} catch (e) {
|
|
done(false);
|
|
}
|
|
}
|
|
</script>
|
|
</html>
|
|
|