Skip to content

fix: treat all WebKit iOS browseres the same#59168

Open
philiprenich wants to merge 2 commits intonextcloud:masterfrom
philiprenich:fix-ios-browsers
Open

fix: treat all WebKit iOS browseres the same#59168
philiprenich wants to merge 2 commits intonextcloud:masterfrom
philiprenich:fix-ios-browsers

Conversation

@philiprenich
Copy link
Copy Markdown

Summary

This changes the user agent regex used to detect browsers on iOS. Since all browsers there currently use WebKit and render as Mobile Safari, they should be treated the same. The regex does not match the potential upcoming EU-only Gecko-based mobile Firefox. Here is a sample of matching and unmatching UA strings

I also simplified the regex after researching various iPhone/iPad UA strings across the years and models.

Tested In

iOS...

  • Firefox
  • Vivaldi
  • Safari
  • Edge
  • Chrome
  • Opera
  • Firefox Focus
  • DuckDuckGo

Checklist

AI (if applicable)

  • None

Signed-off-by: Philip Renich <hello@philiprenich.com>
@philiprenich philiprenich requested a review from a team as a code owner March 24, 2026 03:18
@philiprenich philiprenich requested review from ArtificialOwl, CarlSchwan, come-nc and icewind1991 and removed request for a team March 24, 2026 03:18
@philiprenich
Copy link
Copy Markdown
Author

@provokateurin

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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.

Treat mobile Firefox as mobile Safari on iOS

2 participants