Assert that the router leaves foreign history entries alone
If the entry that is current at the first commit is not the one the
document was activated on, and the router did not write it — a native
anchor entry, or a third-party push that landed before the router's
wrappers were installed — then the render does not describe that entry
and the router has no business writing to it.
Every test that ends up on such an entry now checks its history state,
and a new one checks its URL: when the push lands after the router's
store captured the URL, writing to the entry puts that URL back and
undoes the push.
They fail. The write puts __NA and the rendered tree on the entry and
resets its URL, and the __NA in turn makes the replay check treat the
entry as restorable.
Co-Authored-By:
Claude Opus 5 <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment