Skip to content

fix: treat all WebKit iOS browseres the same#59168

Open
philiprenich wants to merge 1 commit intonextcloud:masterfrom
philiprenich:fix-ios-browsers
Open

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

Conversation

@philiprenich
Copy link

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
Author

@provokateurin

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.

Treat mobile Firefox as mobile Safari on iOS

1 participant