Closed Bug 413667 Opened 17 years ago Closed 15 years ago

User agent check thinks Safari and Mozilla Suite are Firefox

Categories

(support.mozilla.org :: Forum, task)

task
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jason.barnabe, Unassigned)

Details

(Whiteboard: sumo_only)

http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=5665&topics_offset=4&topics_sort_mode=lastPost_desc&forumId=3

Need to narrow down the "isUsingFirefox" function to not match Safari and Mozilla Suite, otherwise we get weird version numbers.
Severity: normal → minor
Assignee: nobody → jason_barnabe
The problem here is detecting things that really are Firefox, like betas, while not detecting things that are Gecko but not Firefox, like Mozilla Suite. Not sure how to do that short of making a list of product names.
Is this still a problem?
Assignee: jason.barnabe → nobody
Stephen or Krupa: can you repro this?
Assignee: nobody → stephen.donner
Status: NEW → UNCONFIRMED
Safari 4 gives me:

Test test
Firefox version: 530.17 Operating system: undefined

More testing later...
Status: UNCONFIRMED → NEW
[1] Safari 3.2.2 on OS X 10.5 yields:

Firefox version: 525.28.3 Operating system: undefined

(User agent:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/525.28.3 (KHTML, like Gecko) Version/3.2.3 Safari/525.28.3)

[2] SeaMonkey 1.1.16 on Windows XP yields:

Firefox version: 1.1.16 Operating system: Windows XP

(User agent: 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16)
Assignee: stephen.donner → nobody
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.