Repository navigation
fix(client): Fix Android being too greedy with Safari user agent (fixes #24295) - #25027
Conversation
WalkthroughThis PR fixes a browser detection bug where Android WebViews were incorrectly flagged as unsupported legacy Safari browsers. The fix adds an explicit Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Thank you for this contribution and for signing our CLA! |
✅ Automated tests have passed! |



What does this PR do?
The check for user agents on Android devices is too inaccurate. Specifically, the check for Safari also applies on Android's Chrome based WebView. This small change checks if the platform is actually a Safari before checking the necessary regular expression.
Closes Issue(s)
Closes #24295
Motivation
Embedding BBB in a WebView in Android is necessary for me.
How to test
index.htmland thesafariVersionwill be4although Safari was not the platform used by this agent.Mozilla/5.0 (Linux; Android 16; sdk_gphone64_x86_64 Build/BE2A.250530.026.D1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/142.0.7444.102 Mobile Safari/537.36More