Skip to content

Add Haiku to OS detection logic. - #185

Open
waddlesplash wants to merge 1 commit into
DamonOehlman:masterfrom
waddlesplash:haiku
Open

waddlesplash wants to merge 1 commit into
DamonOehlman:masterfrom
waddlesplash:haiku

Conversation

@waddlesplash

Copy link
Copy Markdown

It must go before Linux because otherwise the "X11" check will misdetect Linux here.

Right now, Haiku's native WebKit is detected as Safari since that's what the user-agent most specifically contains. It would probably make more sense to list the AppleWebKit version (the WebPositive/ version has not changed in years.) But at least we get the OS correct now.

It must go before Linux because otherwise the "X11" check will
misdetect Linux here.

Right now, Haiku's native WebKit is detected as Safari since
that's what the user-agent most specifically contains. It
would probably make more sense to list the AppleWebKit version
(the WebPositive/ version has not changed in years.) But at least
we get the OS correct now.
@waddlesplash

Copy link
Copy Markdown
Author

The two added user-agent strings are real user-agents from WebPositive (HaikuWebKit) and Falkon (QtWebEngine) running on a recent Haiku x86_64 install.

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.

1 participant