ladybird/Libraries/LibWeb/FileAPI
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
..
Blob.cpp LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
Blob.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
Blob.idl
BlobURLStore.cpp LibWeb: Update revokeObjectURL for reported spec bugs 2025-01-22 12:33:55 +00:00
BlobURLStore.h LibWeb: Update revokeObjectURL for reported spec bugs 2025-01-22 12:33:55 +00:00
File.cpp LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
File.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
File.idl
FileList.cpp LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
FileList.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
FileList.idl
FileReader.cpp AK+Everywhere: Allow lonely UTF-16 surrogates by default 2025-07-03 09:51:56 -04:00
FileReader.h LibWeb: Implement FileReaderSync interface 2025-02-28 04:49:51 +00:00
FileReader.idl
FileReaderSync.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
FileReaderSync.h LibWeb: Implement FileReaderSync interface 2025-02-28 04:49:51 +00:00
FileReaderSync.idl LibWeb: Implement FileReaderSync interface 2025-02-28 04:49:51 +00:00