gUpdates.setButtons(null, true, "downloadButton_" + severity, 
gUpdates.setButtons(null, true, "downloadButton_" + severity, 
  onPageShow: function() {    // disable the "next" button, as we don't want the user to    // be able to progress with the update util we show them the details    // which might include a warning about incompatible add-ons    // disable the "back" button, as well (note the call to setButtons()    // below does this, too).  This just leaves the cancel button    // until we are ready    gUpdates.wiz.getButton("next").disabled = true;    gUpdates.wiz.getButton("back").disabled = true;    var updateName = gUpdates.strings.getFormattedString("updateName",       [gUpdates.brandName, gUpdates.update.version]);    if (gUpdates.update.channel == "nightly")      updateName = updateName + " nightly (" + gUpdates.update.buildID + ")";    var updateNameElement = document.getElementById("updateName");    updateNameElement.value = updateName;    var severity = gUpdates.update.type;    var updateTypeElement = document.getElementById("updateType");    updateTypeElement.setAttribute("severity", severity);     var intro;    if (severity == "major") {      // for major updates, use the brandName and the version for the intro      intro = gUpdates.strings.getFormattedString(        "introType_major_app_and_version",         [gUpdates.brandName, gUpdates.update.version]);      this._updateMoreInfoContent =         document.getElementById("updateMoreInfoContent");      // update_name and update_version need to be set before url      // so that when attempting to download the url, we can show      // the formatted "Download..." string      this._updateMoreInfoContent.update_name = gUpdates.brandName;      this._updateMoreInfoContent.update_version = gUpdates.update.version;      this._updateMoreInfoContent.url = gUpdates.update.detailsURL;    }    else {      // for minor updates, do not include the version      // just use the brandName for the intro      intro = gUpdates.strings.getFormattedString(        "introType_minor_app", [gUpdates.brandName]);      var updateMoreInfoURL = document.getElementById("updateMoreInfoURL");      updateMoreInfoURL.href = gUpdates.update.detailsURL;     }    var updateTitle = gUpdates.strings                              .getString("updatesfound_" + severity + ".title");    gUpdates.wiz.currentPage.setAttribute("label", updateTitle);    // this is necessary to make this change to the label of the current    // wizard page show up    gUpdates.wiz._adjustWizardHeader();    while (updateTypeElement.hasChildNodes())      updateTypeElement.removeChild(updateTypeElement.firstChild);    updateTypeElement.appendChild(document.createTextNode(intro));        var em = Components.classes["@mozilla.org/extensions/manager;1"]                       .getService(Components.interfaces.nsIExtensionManager);    var items = em.getIncompatibleItemList("", gUpdates.update.version,                                           nsIUpdateItem.TYPE_ADDON, false,                                            { });    if (items.length > 0) {      // There are addons that are incompatible with this update, so show the       // warning message.      var incompatibleWarning = document.getElementById("incompatibleWarning");      incompatibleWarning.hidden = false;            this._incompatibleItems = items;    }        // wait to show the additional details until after we do the check    // for add-on incompatibilty    this.onShowMoreDetails();    var licenseAccepted;    try {      licenseAccepted = gUpdates.update.getProperty("licenseAccepted");    }    catch (e) {      gUpdates.update.setProperty("licenseAccepted", "false");      licenseAccepted = false;    }        // only major updates show EULAs    if (gUpdates.update.type == "major" &&        gUpdates.update.licenseURL && !licenseAccepted)      gUpdates.wiz.currentPage.setAttribute("next", "license");    gUpdates.setButtons(null, true, "downloadButton_" + severity,                         false, null, false,                        null, false, true,                         "laterButton", false,                         severity == "major" ? "neverButton" : null, false);    gUpdates.wiz.getButton("next").focus();  },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/dd0789ea577a496e2622a164a469a9cb1bcf058d/updates.js/clean/toolkit/mozapps/update/content/updates.js