Files
tubestation/dom/websocket/tests/file_bug1384658.html
Benjamin VanderSloot b687f6b23b Bug 1937121, part 1 - Remove storage unpartitioning from dom tests - r=smaug
Similar to another recent patch, this removes uses of
SimpleTest.enableLegacyUnpartitionedStorage for the new BroadcastChannel.unpartitionedTestingChannel.

One exception is test_bug458091.html, which I just disable for xorigin.
It really doesn't need the xorigin coverage imo. It is testing that
sessionStorage uses principals, not just the Document URI.

Differential Revision: https://phabricator.services.mozilla.com/D242942
2025-04-07 12:37:46 +00:00

19 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>