fix(dom): validate XPathResult receivers and preserve native alias state

Use generated WebIDL receiver checks for all result members and expose the
required snapshotItem length. Convert its index before checking the result
kind, preserving throwing and reentrant numeric conversions.

Resolve private result slots through the registered native backing for reads
and writes so aliases share scalar values, iterator cursors and mutation
invalidation. Keep author and revoked proxies outside native brands.

Cover all result kinds in live/windowless HTML/XML documents across realms,
including native aliases and unchanged snapshots after document mutations.
This commit is contained in:
ldm0
2026-11-03 18:08:17 +08:00
parent 665b38a891
commit 6987b5a79a
@@ -165,7 +165,6 @@ mod video_codec_support;
mod named_node_map_receivers;
mod node_native_aliases;
mod range_bindings;
mod window_focus;
mod web_transport_error_values;