rem: onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", " " + request.URI.spec + ", " + progress + "/" + maxProgress);  var name = gUpdates.strings.getFormattedString("downloadingPrefix", [gUpdates.update.name]); var status = this.statusFormatter.formatStatus(progress, maxProgress); var progress = Math.round(100 * (progress/maxProgress));  var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePropertyBag); p.setProperty("progress", progress); p.setProperty("status", status);    if (this._paused) return;  if (!(this._downloadThrobber.hasAttribute("state") && (this._downloadThrobber.getAttribute("state") == "loading"))) this._downloadThrobber.setAttribute("state", "loading"); if (this._downloadProgress.mode != "normal") this._downloadProgress.mode = "normal"; this._downloadProgress.value = progress; this._pauseButton.disabled = false; this._downloadName.value = name; this._setStatus(status); }, 
add: onProgress: function(request, position, totalSize) { var pm = document.getElementById("checkingProgress"); checkingProgress.setAttribute("mode", "normal"); checkingProgress.setAttribute("value", Math.floor(100 * (position/totalSize))); }, 
context:   onProgress: function(request, context, progress, maxProgress) {    request.QueryInterface(nsIIncrementalDownload);    LOG("UI:DownloadingPage.onProgress", " " + request.URI.spec + ", " + progress +         "/" + maxProgress);    var name = gUpdates.strings.getFormattedString("downloadingPrefix", [gUpdates.update.name]);    var status = this.statusFormatter.formatStatus(progress, maxProgress);    var progress = Math.round(100 * (progress/maxProgress));    var p = gUpdates.update.selectedPatch;    p.QueryInterface(Components.interfaces.nsIWritablePropertyBag);    p.setProperty("progress", progress);    p.setProperty("status", status);        // This !paused test is necessary because onProgress may fire after    // the download was paused (for those speedy clickers...)    if (this._paused)      return;    if (!(this._downloadThrobber.hasAttribute("state") &&         (this._downloadThrobber.getAttribute("state") == "loading")))      this._downloadThrobber.setAttribute("state", "loading");    if (this._downloadProgress.mode != "normal")      this._downloadProgress.mode = "normal";    this._downloadProgress.value = progress;    this._pauseButton.disabled = false;    this._downloadName.value = name;    this._setStatus(status);  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b0b05842a7ac9d824f79e32b772d8d688b63552/updates.js/clean/toolkit/mozapps/update/content/updates.js