Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect Firefox browser in iOS #146

Open
ldttmt opened this issue Aug 6, 2020 · 4 comments
Open

How to detect Firefox browser in iOS #146

ldttmt opened this issue Aug 6, 2020 · 4 comments

Comments

@ldttmt
Copy link

ldttmt commented Aug 6, 2020

Hi, thanks for a great package 🏅
It seems Firefox browser in iOS now returns "Safari" as browser name instead of "FxiOS" as before. Is there any other way to detect it in iOS?
Here is the UA from Firefox in my iPad:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
@NeoHoffa
Copy link

has this been addressed yet?

@DamonOehlman
Copy link
Owner

@NeoHoffa I haven't done anything here as yet, because honestly, I'm not sure what options we have. In many ways it makes sense that this is returned as Safari, because that's pretty much what it is on iOS as far as I understand things. Just wrapped up slightly differently, but from a rendering engine perspective it's almost exactly the same 🤷‍♂️

@feross
Copy link

feross commented Mar 31, 2021

There are subtle differences between Firefox iOS and Safari. In particular, you can't click on a blob url to trigger a file download in any browser except Safari because WebViews are broken. Would be nice if we could figure out a way to detect Firefox to workaround this.

@DamonOehlman
Copy link
Owner

Interestingly mozilla-mobile/firefox-ios#6620 has been triaged as a bug and included on a project in that repo. Perhaps they are looking to get the FxiOS string back as part of the UA?

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

No branches or pull requests

4 participants