rem: var downloadID = "dl" + aDownload.id; var download = this.doc.getElementById(downloadID); if (download) download.setAttribute("status", ""); 
add: let dl = getDownload(aDownload.id); if (dl) dl.setAttribute("status", ""); 
context:   onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus, aDownload)  {    if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) {      var downloadID = "dl" + aDownload.id;      var download = this.doc.getElementById(downloadID);      if (download)        download.setAttribute("status", "");    }  },
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/c816c402c2dc9a4ba3e0172325a9186da0704138/DownloadProgressListener.js/clean/toolkit/mozapps/downloads/content/DownloadProgressListener.js