Skip to content

Why is Gecko version used for the Firefox user agent?  #80

@rdsedmundo

Description

@rdsedmundo

// Use engine version for gecko-based browsers
if (parsedUA.engine.name === 'Gecko') {
return {
family: 'Firefox',
version: parsedEngineVersion
}
}

I'm using Firefox 118.0.1 with user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0.

My browserslist query is as follows:

">0.3%",
"not dead",
"not op_mini all",
"not ie 11"

Which returns, as of now, the following browsers:

'and_chr 115',       'and_uc 15.5',
'chrome 115',        'chrome 114',
'chrome 113',        'chrome 109',
'edge 115',          'edge 114',
'firefox 115',       'firefox 114',
'ios_saf 16.5',      'ios_saf 16.4',
'ios_saf 16.3',      'ios_saf 16.2',
'ios_saf 16.1',      'ios_saf 16.0',
'ios_saf 15.6-15.7', 'ios_saf 14.5-14.8',
'opera 100',         'opera 99',
'safari 16.5',       'safari 16.3',
'safari 15.6',       'samsung 21'

The browserslist-useragent package thinks my Firefox is 109.0 (the Gecko version) instead of 118.0 (I have allowHigherVersions set), so it detects my browser as not supported. This doesn't seem right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions