ladybird/Libraries/LibWeb/Bindings
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
..
AgentType.h LibWeb: Move AgentType enum to its own header 2025-05-18 17:50:05 -06:00
AudioConstructor.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
AudioConstructor.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ExceptionOrUtils.h LibWeb: Remove dom_ from dom_exception_to_throw_completion 2024-12-09 20:02:51 -07:00
HostDefined.cpp
HostDefined.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
ImageConstructor.cpp LibJS: Inline the fast path of Value::to_i32() and simplify to_u32() 2025-04-09 22:06:49 +02:00
ImageConstructor.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Intrinsics.cpp LibWeb: Use enum for serialization and reimplement interface exposure 2025-07-15 09:20:02 -04:00
Intrinsics.h LibWeb: Use enum for serialization and reimplement interface exposure 2025-07-15 09:20:02 -04:00
MainThreadVM.cpp LibWeb/CSP: Implement the script-src directive 2025-07-09 15:52:54 -06:00
MainThreadVM.h LibWeb: Move AgentType enum to its own header 2025-05-18 17:50:05 -06:00
OptionConstructor.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
OptionConstructor.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
PlatformObject.cpp Revert "LibJS+LibWeb: Return Vector<PropertyKey> from… 2025-05-16 06:33:09 +01:00
PlatformObject.h Revert "LibJS+LibWeb: Return Vector<PropertyKey> from… 2025-05-16 06:33:09 +01:00
PrincipalHostDefined.cpp
PrincipalHostDefined.h LibJS+LibWeb: Add fast_is<T> helpers for Realm::HostDefined class family 2025-04-18 14:45:56 +02:00
Serializable.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
SyntheticHostDefined.cpp LibWeb: Visit proper base class in SyntheticHostDefined 2024-11-30 11:55:11 +01:00
SyntheticHostDefined.h LibJS+LibWeb: Add fast_is<T> helpers for Realm::HostDefined class family 2025-04-18 14:45:56 +02:00
Transferable.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00