Files
ladybird/Tests/LibWeb/Crash/wpt-import/streams/piping/crashtests/cross-piping.html
Timothy Flynn fbd1f77161 LibWeb: Disentangle both ends of a MessagePort at once
Otherwise, the remote end believes it is still entangled and may try to
access its own (now null) remote port. This fixes a crash in WPT.
2025-05-24 10:47:06 +12:00

13 lines
317 B
HTML

<!DOCTYPE html>
<script type="module">
let a = new ReadableStream();
let b = self.open()
let f = new b.WritableStream();
a.pipeThrough(
{ "readable": a, "writable": f },
{ "signal": AbortSignal.abort() }
)
await new Promise(setTimeout);
structuredClone(undefined, { "transfer": [f] })
</script>