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

fix(browser): Call original function on early return from patched history API #15576

Merged

Conversation

msurdi-a8c
Copy link
Contributor

In #14696 an early return was introduced that alters the default behavior of the underlying history API that is being patched.

Instead of just returning, the original/underlying function should be called to keep the default behavior.

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

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

Oh damn good one.

@AbhiPrasad
Copy link
Member

This feels important enough we should add a regression test for, and maybe even think about backporting.

@lforst
Copy link
Member

lforst commented Mar 5, 2025

This is a no-brainer to merge. We will follow up with regression tests.

@AbhiPrasad AbhiPrasad merged commit 97155e9 into getsentry:develop Mar 5, 2025
108 checks passed
@AbhiPrasad
Copy link
Member

opened #15594 and #15593 to track future work.

chargome added a commit that referenced this pull request Mar 6, 2025
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #15576

Co-authored-by: AbhiPrasad <[email protected]>
Co-authored-by: Charly Gomez <[email protected]>
@adrianjost
Copy link

This broke our SPA badly. I suggest creating a 9.4.1 bugfix release for this.

@AbhiPrasad
Copy link
Member

@adrianjost we have a release in progress - should be out tomorrow morning at the latest #15611

@AbhiPrasad
Copy link
Member

@adrianjost released with https://github.com/getsentry/sentry-javascript/releases/tag/9.5.0 - appreciate the patience in the meantime.

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.

4 participants