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?
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>
We use the device type and OS in logs and metrics. It's very useful for us to have this information.
See above comment.
(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.