Bug 24923 - navigator.product returns "Gecko"
Summary: navigator.product returns "Gecko"
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: PC Windows XP
: P2 Minor
Assignee: Nobody
URL: javascript:alert(navigator.product);
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-29 11:01 PDT by Rafael
Modified: 2011-07-01 12:10 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael 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.
Comment 1 Mark Rowe (bdash) 2009-03-29 22:50:50 PDT
It is very likely that we do this for compatibility reasons.
Comment 2 Gavin Barraclough 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.