mirror of
https://github.com/lexmount/moli.git
synced 2026-11-18 16:08:37 +00:00
Preserve each history entry's document origin across renderer seeds, including inherited about: origins. Only dispatch traverse events for same-origin target documents, using their origin before fetching or redirecting the destination. Keep event eligibility separate from the contiguous Navigation entry list. Hide destination identity and state outside that list and avoid creating pending event state for suppressed cross-origin classic-history traversals. Add HTTP regressions for child frames, popups, cross-origin gaps and srcdoc inside cross-origin parents.
moli-history
Native per-Window history storage. This crate has no dependency on V8 or JavaScript objects.
WindowHistoryowns the entry list, current index, and state cache revision. Push and replace operations preserve forward-entry and scroll-restoration semantics.HistoryEntrystores URL and identity metadata, scroll position and restoration mode, and immutable serialized History/Navigation state.- Entry references can outlive their membership in a history, so a retained
NavigationHistoryEntryremains readable after replacement or pruning.
moli-session-history coordinates the traversable's joint history across documents and frames. moli-history stores each Window's native view of those entries. moli-page-types transports serialized snapshots across document or VM replacement.
The renderer provides the structured-clone codec and JS bindings. World-specific History wrappers share the same native WindowHistory; each caches its own deserialized history.state. Weak V8 wrapper registrations lease native records without keeping JS contexts alive. Serialized values contain immutable bytes and trusted native attachments such as Blob data, never realm-local JS handles.