Bug 239449
| Summary: | How to differentiate Safari browser on macOS vs iPadOS? | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | shivaksk1 |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | bfulgham |
| Priority: | P2 | ||
| Version: | Safari 13 | ||
| Hardware: | All | ||
| OS: | All | ||
shivaksk1
Hi,
Is there a way to check if the Safari browser is running on macOS or iPadOS?
The user agent on both the platforms are exactly the same, and hence cannot be used.
The reason why we want to differentiate is to prevent video playback on iPadOS, and allow it only on macOS.
This is for a business requirement to force the users to use Apps and not Safari browser on iPadOS.
Regards,
Shiva
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Brent Fulgham
The decision to express a desktop UA for iPads was precisely because of these business requirements. iPad Safari should be treated no differently from macOS Safari. Our view is that the user should be able to choose whether they wish to have a Safari-only experience on iPad, or install and use an application if they wish.