Firefox user-agent is malformed

Bug #48316 reported by Thomas Folz-Donahue
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubufox (Ubuntu)
Won't Fix
Medium
Mozilla Bugs

Bug Description

Binary package hint: firefox

New dapper firefox user agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 1.8.0.3) Gecko/20060523 Ubuntu/dapper Firefox/1.5.0.3

Mozilla's user-agent string specification is http://www.mozilla.org/build/revised-user-agent-strings.html

Specifically, it's supposed to go something like this-
MozillaProductToken (MozillaComment) GeckoProductToken *(VendorProductToken|VendorComment)

but Ubuntu put it's vendor comment
1) between the MozillaComment and the GeckoProductToken
2) not in parentheses

That's not the right way to construct a user-agent. This issue isn't simply academic, though- some sites don't think the browser is Firefox. One such site is

http://www.nmhschool.org

Tags: mt-eval
Revision history for this message
Simon Law (sfllaw) wrote :

Ah. You want it to read:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 1.8.0.3) Gecko/20060523 Firefox/1.5.0.3 (Ubuntu/dapper)

The parentheses don't seem to be very important according to the
spec, but I suppose people might find that easier to parse.

Changed in firefox:
status: Unconfirmed → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

we need an evaluation on how to fix this ... at best with a patch of course :-P

Changed in firefox:
assignee: nobody → mozillateam
Revision history for this message
Alexander Sack (asac) wrote :

hmmm ... can you please confirm that this is now correct in latest feisty package?

David Farning (dfarning)
Changed in firefox:
assignee: mozillateam → mozilla-bugs
Revision history for this message
Christian Svensson (bluecmd) wrote :

Still a problem in Gutsy:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070719 Ubuntu/7.10 (gutsy) Firefox/2.0.0.5

Revision history for this message
Christian Svensson (bluecmd) wrote :

This would be a patch, but the question is if it's a valid problem?

Revision history for this message
Christian Svensson (bluecmd) wrote :

And this would be a full tested patch for the source-package. With it I have a useragent like this:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070722 Firefox/2.0.0.5 (Ubuntu/7.10 - gutsy)

Changed in firefox:
status: Confirmed → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 48316] Re: Dapper firefox user-agent is malformed

On Sun, Jul 22, 2007 at 12:32:57PM -0000, Christian Svensson wrote:
> And this would be a full tested patch for the source-package. With it I have a useragent like this:
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070722 Firefox/2.0.0.5 (Ubuntu/7.10 - gutsy)

So this patch is ment for gutsy?

Can you summarize what is wrong with the current one?

 - Alexander

Revision history for this message
Brian Murray (brian-murray) wrote : Re: Dapper firefox user-agent is malformed

While a patch is included in the bug report that does not warrant the bug being in a Fix Committed state.

Changed in firefox:
status: Fix Committed → Triaged
Revision history for this message
Nicola Ferralis (feranick) wrote :

Still there in hardy:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10

Revision history for this message
John Vivirito (gnomefreak) wrote :

Changed to ubufox.
What is wrong with the following:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009043018 Ubuntu/9.10 (karmic) Firefox/3.0.10

affects: firefox (Ubuntu) → ubufox (Ubuntu)
summary: - Dapper firefox user-agent is malformed
+ Firefox user-agent is malformed
Alexander Sack (asac)
Changed in ubufox (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Dries Desmet (dries) wrote :

Ubuntu maverick is still affected by this bug. According to https://developer.mozilla.org/en/Gecko_user_agent_string_reference the string should be:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Firefox/3.6.13

but it now is:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

Some websites don't think this browser is firefox, and in one particular case I got redirected to the mobile version of a website. On reading up on this issue in this bug report, some people think it's not that important, but it's kinda stupid to have to report to webmasters that I cannot see their website on firefox under linux. They discard it as being a niche issue and don't address it. We could make a case to such webmasters if ubuntu at least followed the instructions for the user agent string set by the mozilla developers.

case in point: http://www.crmart.be redirects me to http://m.crmart.be while on all other browsers (os x, windows, but also chromium on linux) redirects correctly to /nl/index.php

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.