diff --git a/toolkit/content/Makefile.in b/toolkit/content/Makefile.in index f4f457169333..02e5b222ea75 100644 --- a/toolkit/content/Makefile.in +++ b/toolkit/content/Makefile.in @@ -46,7 +46,6 @@ CHROME_DEPS = buildconfig.html include $(DEPTH)/config/autoconf.mk DEFINES += \ - -DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \ -Dtarget="$(target)" \ -Dac_configure_args="$(ac_configure_args)" \ -DCC="$(CC)" \ diff --git a/toolkit/content/about.xhtml b/toolkit/content/about.xhtml index 81b90c310790..7511a45043d3 100644 --- a/toolkit/content/about.xhtml +++ b/toolkit/content/about.xhtml @@ -61,7 +61,7 @@
&brandShortName; -#expand

&about.version; __MOZ_APP_VERSION__

+

@@ -82,6 +82,12 @@ var vendorURL = formatter.formatURLPref("app.vendorURL"); var vendor = document.getElementById("vendorURL"); vendor.setAttribute("href", vendorURL); + + var versionNum = Components.classes["@mozilla.org/xre/app-info;1"] + .getService(Components.interfaces.nsIXULAppInfo) + .version; + var version = document.getElementById("version"); + version.appendChild(document.createTextNode("&about.version; " + versionNum)); } catch (ex) { /* no release notes and vendor URL for you without bug 349985 being fixed */ } diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn index b3fa319a67f8..4638715084fb 100644 --- a/toolkit/content/jar.mn +++ b/toolkit/content/jar.mn @@ -10,7 +10,7 @@ toolkit.jar: * content/global/xul.css (xul.css) content/global/textbox.css (textbox.css) content/global/menulist.css (menulist.css) -* content/global/about.xhtml (about.xhtml) + content/global/about.xhtml (about.xhtml) * content/global/aboutAbout.xhtml (aboutAbout.xhtml) * content/global/aboutRights.xhtml (aboutRights.xhtml) * content/global/aboutRights-unbranded.xhtml (aboutRights-unbranded.xhtml)