Skip to content

fix(core): Skip anonymous callbacks while searching frame URLs. #3842

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

Merged
merged 4 commits into from
Jul 27, 2021

Conversation

onurtemizkan
Copy link
Collaborator

Fixes: #3800

Ideally, should be tested on different browsers/versions with real stack traces. Ref: #3841

@github-actions
Copy link
Contributor

github-actions bot commented Jul 27, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 21.51 KB (+0.23% 🔺)
@sentry/browser - Webpack 22.53 KB (+0.27% 🔺)
@sentry/react - Webpack 22.56 KB (+0.27% 🔺)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.92 KB (+0.16% 🔺)

Copy link
Contributor

@kamilogorek kamilogorek left a comment

Choose a reason for hiding this comment

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

We always return null from getLastValidUrl anyway, so we can remove the ternary operators there.

@onurtemizkan
Copy link
Collaborator Author

@kamilogorek, fixed 👍

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.

[browser] Handle anonymous callbacks more gracefully when using allowUrls/denyUrls
2 participants