stmt.bindInt32Parameter(0, Ci.nsIDownloadManager.DOWNLOAD_NOTSTARTED); stmt.bindInt32Parameter(1, Ci.nsIDownloadManager.DOWNLOAD_DOWNLOADING); stmt.bindInt32Parameter(2, Ci.nsIDownloadManager.DOWNLOAD_PAUSED); stmt.bindInt32Parameter(3, Ci.nsIDownloadManager.DOWNLOAD_QUEUED); stmt.bindInt32Parameter(4, Ci.nsIDownloadManager.DOWNLOAD_SCANNING); 
stmt.bindInt32Parameter(0, nsIDM.DOWNLOAD_NOTSTARTED); stmt.bindInt32Parameter(1, nsIDM.DOWNLOAD_DOWNLOADING); stmt.bindInt32Parameter(2, nsIDM.DOWNLOAD_PAUSED); stmt.bindInt32Parameter(3, nsIDM.DOWNLOAD_QUEUED); stmt.bindInt32Parameter(4, nsIDM.DOWNLOAD_SCANNING); 
function buildActiveDownloadsList(){  // Are there any active downloads?  if (gDownloadManager.activeDownloadCount == 0)    return;  // repopulate the list  var db = gDownloadManager.DBConnection;  var stmt = gActiveDownloadsQuery;  if (!stmt) {    stmt = db.createStatement(replaceInsert(gBaseQuery, 1,      "state = ?1 OR state = ?2 OR state = ?3 OR state = ?4 OR state = ?5"));    gActiveDownloadsQuery = stmt;  }  try {    stmt.bindInt32Parameter(0, Ci.nsIDownloadManager.DOWNLOAD_NOTSTARTED);    stmt.bindInt32Parameter(1, Ci.nsIDownloadManager.DOWNLOAD_DOWNLOADING);    stmt.bindInt32Parameter(2, Ci.nsIDownloadManager.DOWNLOAD_PAUSED);    stmt.bindInt32Parameter(3, Ci.nsIDownloadManager.DOWNLOAD_QUEUED);    stmt.bindInt32Parameter(4, Ci.nsIDownloadManager.DOWNLOAD_SCANNING);    buildDownloadList(stmt, gDownloadsActiveArea);  } finally {    stmt.reset();  }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/39be0419a4a695ce67977c967201261ea171190a/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js