context: function buildHelpMenu(){  var updates =       Components.classes["@mozilla.org/updates/update-service;1"].      getService(Components.interfaces.nsIApplicationUpdateService);  var um =       Components.classes["@mozilla.org/updates/update-manager;1"].      getService(Components.interfaces.nsIUpdateManager);  var activeUpdate = um.activeUpdate;  var strings = document.getElementById("bundle_browser");    var label = strings.getString("updates_checkForUpdates");  if (activeUpdate) {    if (updates.isDownloading) {      if (activeUpdate.name) {        label = strings.getFormattedString("updates_downloadingUpdates",           [activeUpdate.name]);      }      else        label = strings.getString("updates_downloadingUpdatesFallback");    }    else {      if (activeUpdate.name) {        label = strings.getFormattedString("updates_resumeDownloading",          [activeUpdate.name]);      }      else        label = strings.getString("updates_resumeDownloadingFallback");    }  }    var checkForUpdates = document.getElementById("checkForUpdates");  checkForUpdates.label = label;  if (um.activeUpdate && updates.isDownloading)    checkForUpdates.setAttribute("loading", "true");  else    checkForUpdates.removeAttribute("loading");      // Disable the UI if the update enabled pref has been locked by the   // administrator.  checkForUpdates.disabled = gPrefService.prefIsLocked("app.update.enabled");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5b9489e9046633a4e8287838684d61e69a791c65/utilityOverlay.js/clean/browser/base/content/utilityOverlay.js