Bug 591573 - add support for app.support.vendor. r=enn
authorDão Gottwald <dao@mozilla.com>
Fri, 15 Oct 2010 11:10:27 +0200
changeset 55838 11ab351f5bdc7eff4869d86c4ca147c91af5a18b
parent 55837 14aaf0d079897f82cb9c662701be99214fe4a8df
child 55839 dd6a7bbba7b89fb62709688b0da211e1ab190d81
push idunknown
push userunknown
push dateunknown
reviewersenn
bugs591573
milestone2.0b8pre
Bug 591573 - add support for app.support.vendor. r=enn
toolkit/content/aboutSupport.js
--- a/toolkit/content/aboutSupport.js
+++ b/toolkit/content/aboutSupport.js
@@ -85,19 +85,24 @@ const PREFS_BLACKLIST = [
 window.onload = function () {
   // Get the support URL.
   let urlFormatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"]
                        .getService(Ci.nsIURLFormatter);
   let supportUrl = urlFormatter.formatURLPref("app.support.baseURL");
 
   // Update the application basics section.
   document.getElementById("application-box").textContent = Services.appinfo.name;
-  document.getElementById("version-box").textContent = Services.appinfo.version;
   document.getElementById("useragent-box").textContent = navigator.userAgent;
   document.getElementById("supportLink").href = supportUrl;
+  let version = Services.appinfo.version;
+  try {
+    version += " (" + Services.prefs.getCharPref("app.support.vendor") + ")";
+  } catch (e) {
+  }
+  document.getElementById("version-box").textContent = version;
 
   // Update the other sections.
   populatePreferencesSection();
   populateExtensionsSection();
   populateGraphicsSection();
 }
 
 function populateExtensionsSection() {