rem: onProgress: function(request, position, totalSize) { var pm = document.getElementById("checkingProgress"); checkingProgress.setAttribute("mode", "normal"); checkingProgress.setAttribute("value", Math.floor(100 * (position/totalSize))); }, 
add: 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); }, 
context:     onProgress: function(request, position, totalSize) {      var pm = document.getElementById("checkingProgress");      checkingProgress.setAttribute("mode", "normal");      checkingProgress.setAttribute("value", Math.floor(100 * (position/totalSize)));    },
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/04a4dddb965aae2748508b153cf7cc54e06a5205/updates.js/buggy/toolkit/mozapps/update/content/updates.js