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

iOS Firefox useragent does NOT contain "FxiOS" as Documentation says #6620

Open
SimonBasca opened this issue May 18, 2020 · 14 comments
Open
Labels
1 Story size Bug 🐞 This is a bug with existing functionality not behaving as expected P2 Issues that need to be completed after all P1 issues are completed for the current release Q3

Comments

@SimonBasca
Copy link
Contributor

SimonBasca commented May 18, 2020

The page at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox clearly notes that all Firefox versions will contain "FxiOS" in their useragent.

This is not the case, as both Firefox and Firefox Focus, contain "FxiOS" nowhere in their useragent.

I'm developing a site that needs to know when a user is using a mobile browser or not. While official Firefox docs indicate this keyword, and I thought it would be perfect for detecting Firefox mobile, it's no where to be found when actually checking the useragent from an iOS device, when using Firefox.

Either change the docs (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox) or fix the problem of it not showing in Firefox for iOS.

Developers need keywords that are unique to your mobile browsers. While your docs try to indicate that "FxiOS" is that unique term. It's no where to be found in your actual product.

I believe I had previously reported this problem, the problem was fixed for a few months, and now you've removed the "FxiOS" term again from your mobile useragents. Clearly, developers need some unique term or keyword from Mozilla to signify a visitor is using a mobile.

VIa : https://bugzilla.mozilla.org/show_bug.cgi?id=1638613

┆Issue is synchronized with this Jira Task

@SimonBasca SimonBasca added the Bug 🐞 This is a bug with existing functionality not behaving as expected label May 18, 2020
@athomasmoz
Copy link

Documentation should be updated to reflect that we don't include FxiOS in UA.

@athomasmoz athomasmoz added 1 Story size P2 Issues that need to be completed after all P1 issues are completed for the current release labels May 21, 2020
@athomasmoz athomasmoz added the Q3 label Jul 8, 2020
@ltrung
Copy link

ltrung commented Aug 5, 2020

Without the 'FxiOS' in the user agent, is there a way to detect Firefox vs Safari in iOS?

@data-sync-user data-sync-user changed the title iOS Firefox useragent does NOT contain "FxiOS" as Documentation says FXIOS-454 ⁃ iOS Firefox useragent does NOT contain "FxiOS" as Documentation says Aug 5, 2020
@f0dder1024
Copy link

FxiOS string in user agent does not appear on iPad Pro 12.9inch 3rd Gen (iPadOS 14.4 ) w/Firefox Daylight 32.0 (3841)
The expected FxiOS string shows up on iPhone Xs Max (iOS 14.4). w/Firefox Daylight 32.0 (3841)

Perhaps an iPadOS issue?

@grantg182
Copy link

Still an issue in Firefox Daylight 33.0 (4119) 😭

@FlowIT-JIT
Copy link

What is the reason for hiding the fact that the browser is Firefox on iPad and not on iPhone and iPod ?

@data-sync-user data-sync-user changed the title FXIOS-454 ⁃ iOS Firefox useragent does NOT contain "FxiOS" as Documentation says iOS Firefox useragent does NOT contain "FxiOS" as Documentation says Apr 20, 2022
@mugurelghflorea
Copy link

Our customers would benefit greatly if our solution could detect if browser is FF. Still an issue for iPad 7th generation, iPadOS 15.5.

@carlhemp
Copy link

It would be greatly appreciated if we could also detect the browser is FF on an iPad. I second @FlowIT-JIT's comment on this - is there a reason for this not being standardized with the rest of FF iOS UA strings?

@hlopes-ledger
Copy link

One more vote for this, as mentioned the behaviour is inconsistent between iOS and iPadOS.

@mriabokliach
Copy link

And here we are 3 years later, at the same place. Still no "FxiOS" in the user agent, even though the MDN docs state the opposite.
🤷‍♂️

Using:
iPhone SE
iOS 16.6
Firefox 116.0

IMG_5858

@cpeterso
Copy link

The FxiOS string was recently removed from Firefox iOS's UA string in #15142 because it was causing multiple web compatibility problems (such as #13294).

@cpeterso
Copy link

FxiOS is being added back to Firefox iOS's User-Agent string in this PR: #16176

@Yukigamine
Copy link

This issue is fixed on iOS Firefox but not iPadOS.

@umeshrenlty
Copy link

I am also getting same issue in ipad .Not able to detect browser name it is alawyas giving as safari

@cpeterso
Copy link

cpeterso commented Mar 10, 2024

Because the Firefox UA string doesn't include "FxiOS" on iPad, the ua-parser-ja library mistakenly identifies Firefox as Safari: faisalman/ua-parser-js#709

Safari on iPadOS 17.4:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15

Firefox 120.4 on iPadOS 17.4:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 Story size Bug 🐞 This is a bug with existing functionality not behaving as expected P2 Issues that need to be completed after all P1 issues are completed for the current release Q3
Projects
None yet
Development

No branches or pull requests