WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
24923
navigator.product returns "Gecko"
https://bugs.webkit.org/show_bug.cgi?id=24923
Summary
navigator.product returns "Gecko"
Rafael
Reported
2009-03-29 11:01:42 PDT
navigator.product returns "Gecko". Can be tested by putting the following in the address bar: javascript:alert(navigator.product); Surely this is pointless and the logical value should be "WebKit". This is actually a sensible way of detecting Gecko-based browsers (or could be) but here WebKit is muddying the waters. The same could be said for lots of other navigator properties.
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2009-03-29 22:50:50 PDT
It is very likely that we do this for compatibility reasons.
Gavin Barraclough
Comment 2
2011-07-01 12:10:49 PDT
Based on Mark Rowe's comments, it sounds like this is a deliberate choice, and not to be fixed. Note that the navigator.vendor, navigator.appVersion, and navigator.userAgent strings may be useful in distinguishing a WebKit based browser from a Gekko based one. Closing this bug on the understanding that we don't intend to change this for compatibility reasons, If this decision needs to be revisited, particularly if this is causing website failures, please reopen.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug