rem: onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + "/" + maxProgress);  var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePropertyBag); p.setProperty("progress", Math.round(100 * (progress/maxProgress))); p.setProperty("status", this.statusFormatter.formatStatus(progress, maxProgress));  this._downloadProgress.mode = "normal"; this._downloadProgress.value = parseInt(p.getProperty("progress")); this._pauseButton.disabled = false; var name = gUpdates.strings.getFormattedString("downloadingPrefix", [gUpdates.update.name]); this._downloadName.value = name; var status = p.getProperty("status"); if (status) 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 p = gUpdates.update.selectedPatch;    p.QueryInterface(Components.interfaces.nsIWritablePropertyBag);    p.setProperty("progress", Math.round(100 * (progress/maxProgress)));    p.setProperty("status",       this.statusFormatter.formatStatus(progress, maxProgress));    this._downloadProgress.mode = "normal";    this._downloadProgress.value = parseInt(p.getProperty("progress"));    this._pauseButton.disabled = false;    var name = gUpdates.strings.getFormattedString("downloadingPrefix", [gUpdates.update.name]);    this._downloadName.value = name;    var status = p.getProperty("status");    if (status)      this._setStatus(status);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a938271a6773900da90a8d7fbde143fb6b8bdd76/updates.js/clean/toolkit/mozapps/update/content/updates.js