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

Wrong user agent on Firefox iPadOS #3696

Open
magsout opened this issue May 25, 2022 · 2 comments
Open

Wrong user agent on Firefox iPadOS #3696

magsout opened this issue May 25, 2022 · 2 comments

Comments

@magsout
Copy link
Member

magsout commented May 25, 2022

I reported a website on webcompat using my iPad, but webcompat detected Safari instead of Firefox Daylight 100.1 (9384)

C55ACA23-287A-4BAB-A434-940B44FF738D

My user agent is: 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

@ksy36
Copy link
Contributor

ksy36 commented May 26, 2022

Thanks @magsout. This is expected as Firefox on an iPad is returning Safari desktop UA by default, see https://github.com/mozilla-mobile/firefox-ios/blob/main/Shared/UserAgent.swift#L52.

I recall the team is using desktop Safari desktop UA at the moment because there were a number of reports with sites showing browser out-of-date warnings for Firefox iPad UA (mozilla-mobile/firefox-ios#6310 for example). I think Safari on an iPad is also returning Safari desktop UA.

@ksy36 ksy36 closed this as completed May 26, 2022
@ksy36
Copy link
Contributor

ksy36 commented May 26, 2022

So maybe we could try and improve this on our side as there is device-tablet label that's coming from the iOS reporter on an iPad: https://github.com/webcompat/web-bugs/issues?q=is%3Aopen+is%3Aissue+label%3Adevice-tablet.

If the UA is Safari on desktop AND the label is present, we can change that text to something like "Did you encounter the issue on this device (iPad) using this browser (Firefox)"

@ksy36 ksy36 reopened this May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants