Opened 13 years ago

Closed 13 years ago

#7886 closed defect (wontfix)

Firefox 3 detected as version 2

Reported by: johncrenshaw Owned by: anonymous
Priority: high Milestone: tbd
Component: Core Version: 1.2.0
Keywords: Cc:
Blocked By: Blocking:


Firefox sent out a bunch of 3.0.3 browsers with Firefox/ as the useragent. Because the useragent is wrong, dojo thinks the browser is FF2, not FF3, and behaves accordingly. This causes, among other things, some fairly serious scrolling issues when controls get focused inside a content pane. Since then FF2 has had a couple of updates, one of them not optional, so really nobody can access a web site using anymore. The following hack is a modification to the core to correctly identify 3.0.3 browsers as FF3, rather than FF2.


d.isFF = parseFloat(dua.split("Firefox/")[1])

there is a bug with FF3.0.3 (it has the wrong user agent) so this extra hack detects when the user agent is probably wrong:

var FFminor = parseInt(dua.split("Firefox/2.0.0.")[1])

if (FFminor == 16) {

Mozilla has forced an update to FF2 since then, so any user agent is almost certainly ACTUALLY an affected FF3.0.3 user. d.isFF = 3;



Attachments (1)

0002.JPG (31.1 KB) - added by johncrenshaw 13 years ago.
screenshot showing a FF3.0.3 browser with the wrong user agent

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by johncrenshaw

Attachment: 0002.JPG added

screenshot showing a FF3.0.3 browser with the wrong user agent

comment:1 Changed 13 years ago by Adam Peller

What is mozilla's plan to roll out a minor update (assuming this doesn't break auto-update) and how long do we figure it would be until this version is obsolete? It may happen quicker than we can get a Dojo update out and not be worth the effort.

comment:2 Changed 13 years ago by Adam Peller

...and we're trying to reduce our isFF versioning anyhow in favor of isGecko/isMoz

comment:3 Changed 13 years ago by James Burke

Resolution: wontfix
Status: newclosed

I agree with peller: we want to move away from isFF tests to isMoz, and this seems hazardous to assume Mozilla would never do a update. Seems like Mozilla's bug to fix.

Note: See TracTickets for help on using tickets.