Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset history title after push/replace but prior to assignment to location #10605

Merged
merged 2 commits into from Mar 29, 2024

Conversation

martrapp
Copy link
Member

@martrapp martrapp commented Mar 29, 2024

Changes

We change the history title while we push / replace the history during view transition.
It got changes back at the end of the function which turned out to be too late when using text fragments (#:~:text=...) as Chrome pushes another state.

Testing

Edit: n./a. Tested manually.

Docs

bug fix n./a.

Copy link

changeset-bot bot commented Mar 29, 2024

🦋 Changeset detected

Latest commit: a673398

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Mar 29, 2024
@matthewp
Copy link
Contributor

lgtm, but can you add a changeset?

@martrapp
Copy link
Member Author

lgtm, but can you add a changeset?

Looked so small and innocent. Done.

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

I suppose you tested the change manually?

@martrapp
Copy link
Member Author

martrapp commented Mar 29, 2024

I suppose you tested the change manually?

Hi @ematipico, yes, sure ;-) Single stepped through the code and was really surprised that Chrome pushes another state to the history when assigning a text fragment for the same page. The "moveToLocation()" code could certainly do with a reworking, but at least it's not wrong now.

@ematipico ematipico merged commit a16a829 into main Mar 29, 2024
13 checks passed
@ematipico ematipico deleted the mt/title branch March 29, 2024 16:02
@astrobot-houston astrobot-houston mentioned this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants