diff options
author | Josh Matthews <josh@joshmatthews.net> | 2025-04-23 09:05:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-23 13:05:41 +0000 |
commit | 5d3cbc67eed3f5ded27ad4d113ec70d8631eb152 (patch) | |
tree | 12160129505935e9a35629b864ad96f24b218a0e /components/shared/profile/lib.rs | |
parent | 7c1e5918a8a5eb1f0bad88b42fdc5265ce1b2d2e (diff) | |
download | servo-main.tar.gz servo-main.zip |
This reduces the boilerplate necessary for adding new
serializable/transferable interfaces to the structured cloning code. We
always need to root the deserialized objects when performing a read
operation, but we don't actually need the concrete object types in the
majority of cases. By storing a list of rooted JS object values, we can
push generic reflector objects into it, and extract the types we need
(MessagePort) at the very end.
Testing: Existing WPT structured cloning tests will provide coverage.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/shared/profile/lib.rs')
0 files changed, 0 insertions, 0 deletions