This produces OS/2 i386 which is more or less correct except that the OS/2 version information is missing.
It appears that it's Unknown that makes web sites freak out and think they run on a mobile platform (e.g. google.com). We should obviously put OS/2 here.
Currently, Chromium reports the following user agent string via
content::BuildUserAgentFromProduct(product_str)
on OS/2:where is what is passed in
product_str
, 537 is WEBKIT_VERSION_MAJOR and 36 is WEBKIT_VERSION_MINOR.This method calls
BuildUserAgentFromOSAndProduct
in turn: https://github.com/bitwiseworks/qtwebengine-chromium-os2/blob/94066e19f149bc944d1fb9c286d952bb729e22c7/chromium/content/common/user_agent.cc#L234The first part in the parenthesis comes from
GetUserAgentPatform
in the me file: https://github.com/bitwiseworks/qtwebengine-chromium-os2/blob/94066e19f149bc944d1fb9c286d952bb729e22c7/chromium/content/common/user_agent.cc#L32This produces
Unknown
on OS/2 as there is no OS/2 specific ifdef.The rest comes from
BuildOSCpuInfo
: https://github.com/bitwiseworks/qtwebengine-chromium-os2/blob/94066e19f149bc944d1fb9c286d952bb729e22c7/chromium/content/common/user_agent.cc#L131This produces
OS/2 i386
which is more or less correct except that the OS/2 version information is missing.It appears that it's
Unknown
that makes web sites freak out and think they run on a mobile platform (e.g. google.com). We should obviously put OS/2 here.See also https://github.com/bitwiseworks/dooble-os2/issues/3.