add:  var prefSvc = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefService); var prefs = prefSvc.getBranch(null);  var distroId = prefs.getCharPref("distribution.id"); if (distroId) { var distroVersion = prefs.getCharPref("distribution.version"); var distroAbout = prefs.getComplexValue("distribution.about", Ci.nsISupportsString);  var distroField = document.getElementById("distribution"); distroField.value = distroAbout; distroField.style.display = "block";  var distroIdField = document.getElementById("distributionId"); distroIdField.value = distroId + " - " + distroVersion; distroIdField.style.display = "block"; }  
context: function init(aEvent) {  if (aEvent.target != document)    return;  var userAgentField = document.getElementById("userAgent");  userAgentField.value = navigator.userAgent;  var button = document.documentElement.getButton("extra2");  button.setAttribute("label", document.documentElement.getAttribute("creditslabel"));  button.setAttribute("accesskey", document.documentElement.getAttribute("creditsaccesskey"));  button.addEventListener("command", switchPage, false);  document.documentElement.getButton("accept").focus();#ifdef XP_MACOSX  // it may not be sized at this point, and we need its width to calculate its position  window.sizeToContent();  window.moveTo((screen.availWidth / 2) - (window.outerWidth / 2), screen.availHeight / 5);#endif}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/01db31f9b2fd96b0622d4b73fbe7c2385c2ddb95/aboutDialog.js/buggy/browser/base/content/aboutDialog.js