Skip to content

Fill in definitions of from and to.#55

Merged
dbaron merged 2 commits intoWICG:mainfrom
dbaron:better-from-to
Sep 29, 2025
Merged

Fill in definitions of from and to.#55
dbaron merged 2 commits intoWICG:mainfrom
dbaron:better-from-to

Conversation

@dbaron
Copy link
Collaborator

@dbaron dbaron commented Sep 26, 2025

This sort of fills in (modulo some issues noted in the text) the placeholders that I left in the definitions of "from" and "to".

(I'm curious if @noamr agrees with my description of the issue.)

@dbaron dbaron requested a review from noamr September 26, 2025 19:39
@dbaron dbaron self-assigned this Sep 26, 2025

ISSUE: The above definitions of from and to probably don't do the right thing
during the loading of the new document in a cross-document navigation,
since I think they reference concepts that are only present on the old document.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They also don't exactly work for the outgoing document in a cross-document navigation.
I think these definitions would currently only work for same-document navigations, and the notes should reflect ths.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't managed to figure out why they don't work for cross-document navigations (at least if same-origin)... could you briefly say why they don't?

Copy link
Collaborator

@noamr noamr Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually they do.
Where they don't work is when you start a same-doc navigation like pushState in the middle of a cross-doc navigation. But perhaps that's an OK edge case to not support.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I've added another issue mentioning that case, and I'll go ahead and merge.

This one mentions problems when starting a same-document navigation in
the middle of a cross-document navigation.
@dbaron dbaron merged commit 4409f3b into WICG:main Sep 29, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Sep 29, 2025
SHA: 4409f3b
Reason: push, by dbaron

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants