1
0
Fork 0
firefox/dom/websocket/tests/file_bug1384658.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

18 lines
436 B
HTML

<!DOCTYPE html>
<html>
<script>
onload = function() {
function done(success) {
var bc = SpecialPowers.wrap(BroadcastChannel).unpartitionedTestingChannel("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>