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

chore: Simplify Apple detection #8035

Merged
merged 6 commits into from
Feb 7, 2025

Conversation

tykus160
Copy link
Member

@tykus160 tykus160 commented Feb 7, 2025

Our Apple device detection misdetects any Webkit-based STB as Apple, due to looking only at vendor property. To mitigate it, we were excluding another user agents, but maintenance of this is problematic.
This PR tries to change direction - an Apple device right now is a device with Apple vendor AND with characteristics of MacOS or iOS.

@tykus160 tykus160 added type: code health A code health issue priority: P2 Smaller impact or easy workaround platform: macOS Issues affecting macOS platform: iOS Issues affecting iOS labels Feb 7, 2025
@tykus160 tykus160 added this to the v4.14 milestone Feb 7, 2025
lib/util/platform.js Outdated Show resolved Hide resolved
tykus160 and others added 2 commits February 7, 2025 11:09
Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
@tykus160 tykus160 requested a review from avelad February 7, 2025 10:13
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 96.67%

@tykus160 tykus160 merged commit d03eb6e into shaka-project:main Feb 7, 2025
17 checks passed
@tykus160 tykus160 deleted the wt-apple-detecion branch February 7, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: iOS Issues affecting iOS platform: macOS Issues affecting macOS priority: P2 Smaller impact or easy workaround type: code health A code health issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants