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): check supportedEntryTypes before caling the function #13541

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

odanado
Copy link
Contributor

@odanado odanado commented Aug 30, 2024

PerformanceObserver is available on iOS 11 and later, but
the supportedEntryTypes method is available on iOS 13 and later.

ref: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver

Therefore, a runtime error will occur if we use Sentry on iOS 11 or iOS 12.

@runarheggset
Copy link

Ran into this today. Crashing on older signage displays (Tizen 4 and WebOS 4), which uses Chrome 56 and 53. We have around 200 of those devices running our software.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) September 9, 2024 11:42
@AbhiPrasad AbhiPrasad merged commit 315a5db into getsentry:develop Sep 9, 2024
117 checks passed
@odanado odanado deleted the check-supportedEntryTypes branch September 9, 2024 11:51
AbhiPrasad added a commit that referenced this pull request Sep 9, 2024
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #13541

Co-authored-by: AbhiPrasad <[email protected]>
@AbhiPrasad
Copy link
Member

This was released with https://github.com/getsentry/sentry-javascript/releases/tag/8.30.0 - thanks for contributing @odanado!

@odanado
Copy link
Contributor Author

odanado commented Sep 10, 2024

Thank you for a quick response!

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.

3 participants