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

fix: IS_IPAD should be false on iPhone #6371

Merged
merged 1 commit into from
Dec 24, 2019
Merged

fix: IS_IPAD should be false on iPhone #6371

merged 1 commit into from
Dec 24, 2019

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Dec 23, 2019

Safari user agent. However, the new check also returns true for iPhones.
Therefore, we should exclude iPhones from the check.

Unfortunately, this means that the iPhone user agent detection on
iPhones inside the Facebook app may break again as previously
(https://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/) we
excluded iPads from the iPhone check but that won't work anymore.

Safari user agent. However, the new check also returns true for iPhones.
Therefore, we should exclude iPhones from the check.

Unfortunately, this means that the iPhone user agent detection on
iPhones inside the Facebook app may break again as previously
(https://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/) we
excluded iPads from the iPhone check but that won't work anymore.
@gkatsev gkatsev added the needs: LGTM Needs one or more additional approvals label Dec 23, 2019
@gkatsev
Copy link
Member Author

gkatsev commented Dec 23, 2019

Just verified with latest Facebook app on iPhone and they report an iPhone user agent now so there isn't any issue with doing this unless you're using a super old version of facebook.

@gkatsev gkatsev removed the needs: LGTM Needs one or more additional approvals label Dec 24, 2019
@gkatsev gkatsev merged commit 917d898 into master Dec 24, 2019
@gkatsev gkatsev deleted the ipad-iphone branch December 24, 2019 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants