bowser icon indicating copy to clipboard operation
bowser copied to clipboard

Chrome OS reports emtpy platform with .getResult()

Open ericcirone opened this issue 5 years ago • 6 comments

The user agent for an Acer Chromebook is Mozilla/5.0 (X11; CrOS x86_64 12239.67.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.102 Safari/537.36

When run with new Bowser(window.navigator.userAgent).getResult() the result has an empty object for platform.

I can see that in parser-platforms.js there is no test for Chrome OS anything. I think it would be great if there could be a default test in to make it Desktop, or in the case of the few Chrome OS tablets (if you can get their user agent string) put a test in for that for tablet. Thanks!

ericcirone avatar Sep 10 '19 13:09 ericcirone

Hi, @ericcirone. Thanks for your report.

The problem is that I have no idea how desktop and tablet ChromeOS differ exactly. I think it would be nice to have more reliable examples (test cases) of UA strings with 100% understanding which is a tablet or a desktop.

Could you help to find those if you're interested in this feature? :)

lancedikson avatar Sep 12 '19 14:09 lancedikson

Well I got two UA Strings,

Acer Chromebook: Mozilla/5.0 (X11; CrOS x86_64 12239.67.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.102 Safari/537.36

Pixel Slate off of Reddit: Mozilla/5.0 (X11; CrOS x86_64 12371.46.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.63 Safari/537.36

Not much of a difference. I guess you could do a capabilities detection as well.

ericcirone avatar Sep 13 '19 16:09 ericcirone

Same issue here. But UA is not very informative. Mozilla/5.0 (X11; CrOS x86_64 12871.91.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.127 Safari/537.36

@ericcirone Did you find a workaround?

kasperkamperman avatar May 04 '20 22:05 kasperkamperman

Same issue here. But UA is not very informative. Mozilla/5.0 (X11; CrOS x86_64 12871.91.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.127 Safari/537.36

@ericcirone Did you find a workaround?

@kasperkamperman I have not yet. 😞

ericcirone avatar May 05 '20 16:05 ericcirone

Same issue here, Dell Chromebook 3120 XDGJH (Laptop): User-Agent: Mozilla/5.0 (X11; CrOS x86_64 13020.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36

wobedi avatar Oct 28 '22 12:10 wobedi