Skip to content

feat(filters): Add mobile browser options to the legacy browser filter - #6476

Draft
shellmayr wants to merge 3 commits into
masterfrom
shellmayr/fix/legacy-browsers-mobile-families
Draft

shellmayr wants to merge 3 commits into
masterfrom
shellmayr/fix/legacy-browsers-mobile-families

Conversation

@shellmayr

@shellmayr shellmayr commented Oct 6, 2026 •

Copy link
Copy Markdown
Member
  • The user agent parser reports mobile browsers as separate families: Mobile Safari, Mobile Safari UI/WKWebView, Chrome Mobile, Chrome Mobile iOS, Chrome Mobile WebView, Firefox Mobile, Firefox iOS, Edge Mobile and Opera Mobile. The existing options compare against the desktop family only, so an iOS Safari 15 event passed the safari filter, which Sentry describes as "Safari Version 15 and lower".
  • Add chrome_mobile, safari_mobile, firefox_mobile, edge_mobile and opera_mobile options. Desktop options keep their behavior, so projects opt into mobile filtering on their own.
  • Mobile Chrome, Safari, Firefox and Edge share the desktop release numbering, so the desktop cutoffs apply. Opera for Android numbers its releases separately, so opera_mobile filters version 73 and lower, the release that matches Chrome 110 in time.
  • Add filter tests for each mobile family, plus negative cases: desktop options do not match mobile user agents and mobile options do not match desktop ones.
  • The first two commits remapped mobile families onto the desktop options. The last commit replaces that with the explicit options.
  • Sentry side: a backend PR accepts the new keys and a frontend PR adds the toggles.

The user agent parser reports mobile browsers as separate families such
as Mobile Safari, Chrome Mobile or Firefox iOS. The legacy browser filter
compared the family against the desktop name only, so an iOS Safari 15
event passed the Safari filter. Map the mobile families to their desktop
counterpart before comparing versions, as was already done for IE Mobile.
Replace the family remap with explicit chrome_mobile, safari_mobile,
firefox_mobile, edge_mobile and opera_mobile options. The desktop
options keep their behavior, so projects opt into filtering mobile
browsers on their own.
@shellmayr shellmayr changed the title fix(filters): Apply legacy browser filters to mobile browser families feat(filters): Add mobile browser options to the legacy browser filter Oct 6, 2026

This branch has not been deployed

No deployments
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.

1 participant