ladybird/Libraries/LibWeb/Streams
Timothy Flynn 64abc6101d LibWeb+WebWorker: Use IPC mechanics for structured serialization
Our structured serialization implementation had its own bespoke encoder
and decoder to serialize JS values. It also used a u32 buffer under the
hood, which made using its structures a bit awkward. We had previously
worked around its data structures in transferable streams, which nested
transfers of MessagePort instances. We basically had to add hooks into
the MessagePort to route to the correct transfer receiving steps, and
we could not invoke the correct AOs directly as the spec dictates.

We now use IPC mechanics to encode and decode data. This works because,
although we are encoding JS values, we are only ultimately encoding
primitive and basic AK types. The resulting data structures actually
enforce that we implement transferable streams exactly as the spec is
worded (I had planned to do that in a separate commit, but the fallout
of this patch actually required that change).
2025-07-18 10:09:02 -04:00
..
AbstractOperations.cpp LibWeb: Don't drop messages received before MessagePort is enabled 2025-06-08 18:26:13 +02:00
AbstractOperations.h LibWeb: Implement transferable streams AOs 2025-05-21 06:54:44 -04:00
Algorithms.h LibWeb/Streams: Put algorithm definitions in a separate header file 2024-12-11 15:11:21 +01:00
ByteLengthQueuingStrategy.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ByteLengthQueuingStrategy.h
ByteLengthQueuingStrategy.idl
CountQueuingStrategy.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
CountQueuingStrategy.h
CountQueuingStrategy.idl
GenericTransformStream.cpp
GenericTransformStream.h
GenericTransformStream.idl
QueuingStrategy.h
QueuingStrategy.idl
QueuingStrategyInit.h
QueuingStrategyInit.idl
ReadableByteStreamController.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ReadableByteStreamController.h LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
ReadableByteStreamController.idl
ReadableStream.cpp LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
ReadableStream.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
ReadableStream.idl LibWeb: Implement ReadableStream's async iterator 2025-04-14 17:43:11 -04:00
ReadableStreamAsyncIterator.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ReadableStreamAsyncIterator.h LibWeb: Implement ReadableStream's async iterator 2025-04-14 17:43:11 -04:00
ReadableStreamBYOBReader.cpp Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
ReadableStreamBYOBReader.h
ReadableStreamBYOBReader.idl
ReadableStreamBYOBRequest.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ReadableStreamBYOBRequest.h
ReadableStreamBYOBRequest.idl
ReadableStreamDefaultController.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ReadableStreamDefaultController.h
ReadableStreamDefaultController.idl
ReadableStreamDefaultReader.cpp LibWeb: Remove unused VM from ReadLoopReadRequest 2025-04-30 09:30:15 -04:00
ReadableStreamDefaultReader.h Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
ReadableStreamDefaultReader.idl
ReadableStreamGenericReader.cpp LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
ReadableStreamGenericReader.h
ReadableStreamGenericReader.idl
ReadableStreamOperations.cpp LibWeb: Move WritableStream AOs into their own file 2025-04-18 06:55:40 -04:00
ReadableStreamOperations.h LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
ReadableStreamPipeTo.cpp LibWeb: Move WritableStream AOs into their own file 2025-04-18 06:55:40 -04:00
ReadableStreamPipeTo.h LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
ReadableStreamTee.cpp LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
ReadableStreamTee.h LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
Transformer.cpp LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
Transformer.h
TransformStream.cpp LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
TransformStream.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
TransformStream.idl
TransformStreamDefaultController.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
TransformStreamDefaultController.h LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
TransformStreamDefaultController.idl
TransformStreamOperations.cpp LibWeb: Move TransformStream AOs into their own file 2025-04-18 06:55:40 -04:00
TransformStreamOperations.h LibWeb: Move TransformStream AOs into their own file 2025-04-18 06:55:40 -04:00
UnderlyingSink.cpp LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
UnderlyingSink.h
UnderlyingSource.cpp LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
UnderlyingSource.h
WritableStream.cpp LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
WritableStream.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
WritableStream.idl
WritableStreamDefaultController.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
WritableStreamDefaultController.h LibWeb: Store WritableStream's strategy high water mark as a double 2025-04-11 12:10:46 -04:00
WritableStreamDefaultController.idl
WritableStreamDefaultWriter.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
WritableStreamDefaultWriter.h
WritableStreamDefaultWriter.idl
WritableStreamOperations.cpp LibWeb: Move WritableStream AOs into their own file 2025-04-18 06:55:40 -04:00
WritableStreamOperations.h LibWeb: Move WritableStream AOs into their own file 2025-04-18 06:55:40 -04:00