RESOLVED INVALID212937
User-Agent on iPadOS is macOS
https://bugs.webkit.org/show_bug.cgi?id=212937
Summary User-Agent on iPadOS is macOS
goehdavi
Reported 2020-06-08 16:13:11 PDT
It appears that by default on iPadOS, Safari requests sites as desktop (macOS). Is there a way so that we can still reliably differentiate iPadOS from macOS?
Attachments
Alexey Proskuryakov
Comment 1 2020-06-08 17:09:15 PDT
This is expected behavior: https://webkit.org/blog/9674/new-webkit-features-in-safari-13/ Please do not implement any "Mac" vs. "iPad" code paths, and use feature detection for each specific that your website or application needs. You are welcome to reach out for assistance via email or slack, <https://webkit.org/getting-started/#staying-in-touch>
goehdavi
Comment 2 2020-07-23 14:00:43 PDT
We use the device type and OS in logs and metrics. It's very useful for us to have this information.
goehdavi
Comment 3 2020-07-23 14:01:22 PDT
See above comment.
Brady Eidson
Comment 4 2020-07-23 21:34:06 PDT
(In reply to goehdavi from comment #2) > We use the device type and OS in logs and metrics. It's very useful for us > to have this information. We understand that. The UA string is misused for feature detection, and variance in the UA string is a huge fingerprinting vector. Both WebKit and Safari will be locking down UA strings more going forward, not less. We're happy to keep having the discussion with regards to the defaults in the WebKit open source project, but Apple's decision to share UA's on iPadOS and macOS is a vendor decision from Apple, not something from the WebKit open source project. You can file a bug with Apple if you, but this WebKit bug is not valid with regards to the WebKit open source project.
Note You need to log in before you can comment on or make changes to this bug.