rem: this.sourceEvent = SRCEVT_BACKGROUND; if (this.update.selectedPatch && this.update.selectedPatch.state == STATE_PENDING) return document.getElementById("finishedBackground"); 
add: var p = this.update.selectedPatch; if (p) { switch (p.state) { case STATE_PENDING: this.sourceEvent = SRCEVT_BACKGROUND; return document.getElementById("finishedBackground"); case STATE_SUCCEEDED: return document.getElementById("installed"); case STATE_FAILED: return document.getElementById("errors"); } } 
context:   get startPage() {    if (window.arguments) {      var arg0 = window.arguments[0];      if (arg0 instanceof Components.interfaces.nsIUpdate) {        // If the first argument is a nsIUpdate object, we are notifying the        // user that the background checking found an update that requires        // their permission to install, and it's ready for download.        this.update = arg0;        this.sourceEvent = SRCEVT_BACKGROUND;        if (this.update.selectedPatch &&            this.update.selectedPatch.state == STATE_PENDING)          return document.getElementById("finishedBackground");        return document.getElementById("updatesfound");      }    }    else {      var um =           Components.classes["@mozilla.org/updates/update-manager;1"].          getService(Components.interfaces.nsIUpdateManager);      if (um.activeUpdate) {        this.update = um.activeUpdate;        return document.getElementById("downloading");      }    }    return document.getElementById("checking");  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/adbdd8367be4043b49ef695db6754e9fbff9687b/updates.js/buggy/toolkit/mozapps/update/content/updates.js