Skip to content

fix(client): Fix Android being too greedy with Safari user agent (fixes #24295) - #25027

Merged
antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
heinrob:24295-fix-android-ua
May 7, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
heinrob:24295-fix-android-ua

Conversation

@heinrob

@heinrob heinrob commented May 7, 2026

Copy link
Copy Markdown

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

More

@coderabbitai

coderabbitai Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

This PR fixes a browser detection bug where Android WebViews were incorrectly flagged as unsupported legacy Safari browsers. The fix adds an explicit isSafari flag check alongside the version comparison in the Safari "too old" compatibility predicate. This ensures that only actual Safari browsers below the minimum supported version trigger the unsupported browser banner, while WebViews with Safari-like user agent strings are allowed to proceed.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains what the PR does, why it's needed, how to reproduce the issue, and references the linked issue #24295.
Linked Issues check ✅ Passed The PR directly addresses the requirement in #24295 by adding an isSafari platform check before applying the Safari version regex, preventing false positives from Android WebView user agents.
Out of Scope Changes check ✅ Passed The PR contains only a targeted fix to the Safari detection logic in the HTML entrypoint, with no extraneous or out-of-scope changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly identifies the main change: fixing incorrect Safari user agent detection for Android WebViews, and directly references the issue being fixed.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

sonarqubecloud Bot commented May 7, 2026

Copy link
Copy Markdown

@antobinary antobinary added this to the Release 3.0 milestone May 7, 2026
@antobinary

Copy link
Copy Markdown
Member

Thank you for this contribution and for signing our CLA!

@antobinary
antobinary requested a review from ramonlsouza May 7, 2026 14:03
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary antobinary changed the title Fix Android being too greedy with Safari user agent (fixes #24295) fix(client): Fix Android being too greedy with Safari user agent (fixes #24295) May 7, 2026
@antobinary
antobinary merged commit 0854f30 into bigbluebutton:v3.0.x-develop May 7, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android WebView mistaken as legacy Safari

4 participants