[MASTER] Firefox reports Gecko Engine Version in "about:"

Bug #194894 reported by Phil Miller
154
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
firefox (Ubuntu)
Fix Released
Undecided
Unassigned
firefox-3.0 (Ubuntu)
Invalid
Low
Unassigned
firefox-3.5 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: firefox

Ubuntu version: Hardy alpha 5
Package: firefox-3.0
Package version: 3.0~b3+nobinonly-0ubuntu2

Steps to reproduce:
1. Boot from Hardy Heron alpha 5 live CD.
2. From the Applications menu, select Internet > Firefox 3 Web Browser.
3. Type "about:" in the URL bar and press return.

Expected result:
Firefox reports itself as "version 3.0b3" in both the version string laid over the logo and in the build identifier

Actual result:
Firefox shows "version 1.9b3" overlaid on the logo, while correctly reporting itself as "... Firefox/3.0b3" in the build identifier.

The contents of Firefox's about page can be found in the soon-to-be attached PDF.

The version from Help > About is not affected; it shows 3.0b3 correctly.

LAST PACKAGES TESTED:
Firefox-3.0 3.0.10+nobinonly-0ubuntu1
Firefox-3.5 3.5~b4+nobinonly-0ubuntu1

Revision history for this message
Phil Miller (ubuntu-millenix) wrote :

Here's that PDF.

Revision history for this message
Jacob Peddicord (jpeddicord) wrote :

Thanks for the report. Confirming, needs forwarded upstream.

Changed in firefox:
status: New → Confirmed
description: updated
Iulian Udrea (iulian)
Changed in firefox:
importance: Undecided → Low
Revision history for this message
In , Սահակ (petrosyan) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5) Gecko/2008040721 Fedora/3.0-0.53.beta5.fc9 Firefox/3.0b5
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5) Gecko/2008040721 Fedora/3.0-0.53.beta5.fc9 Firefox/3.0b5

typing 'about:' in the URL field says "Firefox version 1.9b5". 1.9b5 is gecko version. Firefox version is 3.0b5.

Reproducible: Always

Steps to Reproduce:
1. type 'about:' in the URL
Actual Results:
"Firefox version 1.9b5"

Expected Results:
"Firefox version 3.0b5"

Revision history for this message
In , Philringnalda (philringnalda) wrote :

You'll need to talk to the people who built Fedora/3.0-0.53.beta5.fc9 about that - mozilla.org builds do use Firefox version numbers there.

Revision history for this message
In , Caillon (caillon) wrote :

Actually, this is not Invalid.

about.xhtml is a part of toolkit which is built as part of XULRunner, so the version hardcoded into about.xhtml (http://mxr.mozilla.org/mozilla/source/toolkit/content/about.xhtml#65) is actually getting the Gecko version, and not the version of the application which is built --with-libxul-sdk.

Revision history for this message
In , Caillon (caillon) wrote :

To clarify this is a FF-on-XR bug because about.xhtml is built as part of XR in this case and the __MOZ_APP_VERSION__ is expanded at compile time hard coded into the file, which happens to be the XR/Gecko version, not the app version

Revision history for this message
In , Սահակ (petrosyan) wrote :

Created an attachment (id=315690)
screenshot showing the bug

Revision history for this message
In , Philringnalda (philringnalda) wrote :

Gotcha. Bet I won't be the last person to not imagine that anyone's shipping Firefox-on-XULRunner.

So, does /other-licenses/branding/ know the app's _MOZ_APP_VERSION_, so it could have a preprocessed dtd in content/ to pull in the app version?

Revision history for this message
In , Mark-finkle (mark-finkle) wrote :

I don't think the XR and FF are built at the same time so preprocessing probably won't work.

Instead, we could pull the app version from nsIXULAppInfo, used in about.xhtml onload handler.

Revision history for this message
In , Mark-finkle (mark-finkle) wrote :

Ok, bug 349985 makes that impossible

Revision history for this message
In , Caillon (caillon) wrote :

Also note that Help > About Firefox shows the correct version. This bug is only present when explicitly visiting the about: URI

Revision history for this message
In , Philringnalda (philringnalda) wrote :

It doesn't matter to my scheme that they are built at different times: at the time that the Fx part builds its branding, it knows what version it wants to be, and it can preprocess branding/content/version.dtd, #expand <!ENTITY app.version "_MOZ_APP_VERSION_">, and then all about.xhtml has to know is include chrome://branding/content/version.dtd, and use &app.version; where it wants to put the app version number.

Revision history for this message
Dimitrios Symeonidis (azimout) wrote : Re: Hardy's Firefox reports "version 1.9b3" in "about:"

Confirmed also in Firefox 3b5, where about: now says 1.9b5 while help->about correctly shows 3.0b5

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

They are showing the version of Gecko that firefox is running on. PLease give us the link to the upstream bug report so we can track it.

Changed in firefox:
assignee: nobody → mozilla-bugs
Leo Arias (elopio)
Changed in firefox:
status: New → Unknown
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
In , Mh+mozilla (mh+mozilla) wrote :

FWIW, Epiphany uses a brandVersion entity.

Revision history for this message
In , Mh+mozilla (mh+mozilla) wrote :

OTOH, about.xhtml (modulo bug 349985) already (indirectly) uses version information from nsIXULAppInfo through the url formatter component for the release notes.

Revision history for this message
In , Mh+mozilla (mh+mozilla) wrote :

Created an attachment (id=322346)
possible patch

This obviously needs bug 349985 to be fixed first. It abuses the url formatter to get the version, instead of requesting a nxIXULAppInfo.

It also avoids "version" to be shown alone if script is not allowed per bug 349985, which means it's safe to apply now. It will just remove the version text from the about: page (which is better than displaying the wrong version).

Revision history for this message
In , Ted Mielczarek (ted-mielczarek) wrote :

*** Bug 438535 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Philringnalda (philringnalda) wrote :

*** Bug 438943 has been marked as a duplicate of this bug. ***

Revision history for this message
Alard (alard) wrote : Re: Hardy's Firefox reports "version 1.9b3" in "about:"

In version 3.0+nobinonly-0ubuntu0.8.04.1, about: says version 1.9. Help->about says version 3.0.

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

Are you all seeing Help > About now shoing 3.0?

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

Steps to reproduce:
1. Boot from Hardy Heron alpha 5 live CD.
2. From the Applications menu, select Internet > Firefox 3 Web Browser.
3. Type "about:" in the URL bar and press return.

Those instructions are not able to be used to reproduce please fix. When i follow them i get about.com website

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

note that the bug still exists on the latest intrepid, it is reported as 1.9.0.3, while it's 3.0.3

Revision history for this message
In , Mike Connor (mconnor) wrote :

(From update of attachment 322346)
Ryan, can you take a look at this for me? thanks!

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

(From update of attachment 322346)
(In reply to comment #12)
> This obviously needs bug 349985 to be fixed first. It abuses the url formatter
> to get the version, instead of requesting a nxIXULAppInfo.

That's pretty hacky, and doesn't really save you much. I'd just get it from nsIXULAppInfo directly.

Despite the fallback to not showing a version, I don't think we can take this patch until bug 349985 is fixed, since it will cause the version to disappear for everyone, which is a regression for non-libxul builds.

Revision history for this message
John Vivirito (gnomefreak) wrote : Re: Hardy's Firefox reports "version 1.9b3" in "about:"
Revision history for this message
Michael Rooney (mrooney) wrote : Re: [Bug 194894] Re: Hardy's Firefox reports "version 1.9b3" in "about:"

John, I don't think that is the "about" screen relating to this bug.
We are talking about the screen when you type "about:" into the
address bar and hit enter. Sorry if I did not understand the intent of
your screen shot.

On Fri, Oct 17, 2008 at 8:29 AM, John Vivirito <email address hidden> wrote:
>
> ** Attachment added: "firefox-about.png"
> http://launchpadlibrarian.net/18635117/firefox-about.png
>
> --
> Hardy's Firefox reports "version 1.9b3" in "about:"
> https://bugs.launchpad.net/bugs/194894
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in The Mozilla Firefox Browser: Confirmed
> Status in "firefox" source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: firefox
>
> Ubuntu version: Hardy alpha 5
> Package: firefox-3.0
> Package version: 3.0~b3+nobinonly-0ubuntu2
>
> Steps to reproduce:
> 1. Boot from Hardy Heron alpha 5 live CD.
> 2. From the Applications menu, select Internet > Firefox 3 Web Browser.
> 3. Type "about:" in the URL bar and press return.
>
> Expected result:
> Firefox reports itself as "version 3.0b3" in both the version string laid over the logo and in the build identifier
>
> Actual result:
> Firefox shows "version 1.9b3" overlaid on the logo, while correctly reporting itself as "... Firefox/3.0b3" in the build identifier.
>
> The contents of Firefox's about page can be found in the soon-to-be attached PDF.
>
> The version from Help > About is not affected; it shows 3.0b3 correctly.
>

--
Michael Rooney
<email address hidden>

Revision history for this message
HoppingWombat (hoppingwombat) wrote : Re: Hardy's Firefox reports "version 1.9b3" in "about:"

I am getting a similar bug. When clicking Help -> About, it shows the correct version, but when typign about: it shows 1.9.0.4. I would like to help on this bug, but I am new and may need help. I will take a look at the source code and get back.

Vivirito: I do not think this is showing the Gecko version. It seems to state quite clearly that it is the Firefox version.

Revision history for this message
HoppingWombat (hoppingwombat) wrote :

Have traced it to mozilla/config/milestone.txt

This seems to provide the version number.

Revision history for this message
Nicholas A. Suppiah (t-boxmy) wrote :

I am having the upstream Mozilla but its milestone.txt dont seem to fit the problem. FYI, I do not know how to get the ubuntu version of the Mozilla.

In the source, I suspect it is in directory jpeg along with the main possible files jpeg1640.def and jversion.h

Revision history for this message
Nicholas A. Suppiah (t-boxmy) wrote :

Intrepid is showing in the about:

1.9.0.4

Revision history for this message
HoppingWombat (hoppingwombat) wrote :

To get the source: apt-get source firefox
Then unzip the xulrunner archive.

I don't think it's the jpeg directory, though I could be wrong -- I think it's something to do with either milestone.txt, or the value "rv." On a non-Ubuntu installation, milestone.txt and "rv" both say "1.9.0.4" -- so I think there's some error in the way the Ubuntu version reads the Firefox version.

Of course, I am new so I could be wrong -- but I will be looking at those two areas.

Revision history for this message
HoppingWombat (hoppingwombat) wrote :

I would like to manage this bug fix. Although, if someone else wanted to help, that would be awesome.

Changed in firefox:
assignee: mozilla-bugs → hoppingwombat
status: Confirmed → In Progress
Revision history for this message
HoppingWombat (hoppingwombat) wrote :

Sorry, misunderstood the "edit status" area.

Sorry Suppiah, and thanks for helping :-)

Revision history for this message
Reed Loden (reed) wrote :

What do you mean "manage this bug fix"? What does that entail you actually doing?

Revision history for this message
HoppingWombat (hoppingwombat) wrote :

I mean fixing it.

Sorry, as I said, I am new to this so I will probably mess up on terms.

Revision history for this message
HoppingWombat (hoppingwombat) wrote :

Alright, for me it works to change the first line of toolkit/locales/en-US/chrome/global/about.dtd to the current version number. I don't know why this does what it does, but it does. This, for me, is a workaround. Have a nice day everyone!

Revision history for this message
Hew (hew) wrote :

HoppingWombat, please don't leave the status as In Progress if you are no longer working on the bug, you should set it back to Confirmed. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status .

Marking as Triaged since the bug is upstream.

Changed in firefox:
assignee: hoppingwombat → nobody
status: In Progress → Triaged
Revision history for this message
jpeach (launchpadspam) wrote :

I can confirm this is still a problem in Firefox 3.0.5 (Specifically: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5) and in is showing 1.9.0.5

Revision history for this message
arky (arky) wrote : Re: [MASTER] Firefox reports "version 1.9b3" in "about:"

Confirm this problem still exists in Karmic

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu karmic (development branch)
Release: 9.10
Codename: karmic

$ apt-cache policy firefox
firefox:
  Installed: 3.0.10+nobinonly-0ubuntu1
  Candidate: 3.0.10+nobinonly-0ubuntu1
  Version table:
 *** 3.0.10+nobinonly-0ubuntu1 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Micah Gersten (micahg)
description: updated
summary: - [MASTER] Firefox reports "version 1.9b3" in "about:"
+ [MASTER] Firefox reports Gecko Engine Version in "about:"
Revision history for this message
In , Mark-finkle (mark-finkle) wrote :

*** Bug 492093 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mark-finkle (mark-finkle) wrote :

We need this for Fennec

Revision history for this message
In , Mozilla-bugs-micahscomputing (mozilla-bugs-micahscomputing) wrote :
C de-Avillez (hggdh2)
Changed in firefox-3.5 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
bettlebrox (micktimony) wrote :

I have a similar problem. Except, it seems to be reporting the Firefox (FF) version as 2.0.0.8:

Build identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/2.0.0.8

This is on Ubuntu Jaunty with the latest updates. I first noticed this on the Kayak.com website which warned me that I using a verison of FF older than 2.0.0.16.

I've attached a screen-shot.

Revision history for this message
yamo (stephane-gregoire) wrote :

Hi,
bettlebrox, it's very strange do you have the UserAgentSwitcher extension?

To confirm your bug you can use another profile with : firefox -profilemanager create a test profile and go to the url about:

After closing firefox to use your normal profile start another tiume firefox with firefox -profilemanager

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

Firefox-2.0 is not in faunty repos sor will it ever be. 2.0 is EOL firefox-3.0 will only get security fixes and major bug fixes.
3.5 has yet to be determined on what they will fix.
use 3.5 or 3.0 from jaunty repos please

Revision history for this message
bettlebrox (micktimony) wrote :

yamo: No I don't have the UserAgentSwitch extension installed. I do have the following extensions:
CookieSafe
del.icio.us (disabled)
Flash Video Resources Downloader
FoxyTunes (disabled)
mediaplayerconnectivity (disabled)
Novell Moonlight
Sage
Ubiquity
Ubuntu Firefox Modifications
YSlow (disabled)

John: That is what I'm reported. This is Firefox 3.0.12, but the UserAgent appears to be misreporting the version.

$apt-cache show firefox
Package: firefox
Priority: optional
Section: web
Installed-Size: 124
Maintainer: Alexander Sack <email address hidden>
Architecture: all
Source: firefox-3.0
Version: 3.0.12+build1+nobinonly-0ubuntu0.9.04.1
Depends: firefox-3.0, firefox-3.0-branding
Filename: pool/main/f/firefox-3.0/firefox_3.0.12+build1+nobinonly-0ubuntu0.9.04.1_all.deb
..

Also, in the Firefox About window (Help->About Mozilla Firefox), it shows the FF version correctly in the image, but not in the text underneath. This wasn't initially obvious as the version text isn't visible unless I resize the window (see the attachment).

The FF profile I'm using is one that I've used since at least FF 2.x (on previous Debian & Ubuntu systems).

Revision history for this message
bettlebrox (micktimony) wrote :

A new profile show the correct version:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12

What in my existing profile could be causing the problem? As I said above, I've been using this profile since the FF 2.x days and possibly since the 1.x.

Thanks
Mick

Revision history for this message
bettlebrox (micktimony) wrote :

Apologies for all the comments. I grep'ed through my profile for 2.0.0.8 and found this:

prefs.js:239:user_pref("general.useragent.extra.firefox", "Firefox/2.0.0.8");

I used the firefox about:config view to reset it. I don't know how this was set to 2.0.0.8.

Thanks

Revision history for this message
In , Mark-finkle (mark-finkle) wrote :

*** Bug 538178 has been marked as a duplicate of this bug. ***

Revision history for this message
Սահակ (petrosyan) wrote :

this bug has been fixed in Firefox-3.6

Changed in firefox-3.0 (Ubuntu):
status: Triaged → Invalid
Changed in firefox (Ubuntu):
status: New → Fix Released
Revision history for this message
In , Սահակ (petrosyan) wrote :

this bug has been fixed in Firefox 3.6.3

Revision history for this message
In , Reed Loden (reed) wrote :

(In reply to comment #21)
> this bug has been fixed in Firefox 3.6.3

Fixed by what patch? Not aware of a fix for this landing...

Changed in firefox:
importance: Unknown → Medium
Revision history for this message
In , Mh+mozilla (mh+mozilla) wrote :

Created attachment 483431
Use nxIXULAppInfo to get application version number in about

Now that bug 349985 landed, this can be considered. Addressed concerns from comment 16.

Revision history for this message
In , Mh+mozilla (mh+mozilla) wrote :
Changed in firefox:
status: Confirmed → Fix Released
Սահակ (petrosyan)
Changed in firefox-3.5 (Ubuntu):
status: Triaged → Fix Released
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.