rem:  stepListBuilder(1); gDownloadsView.selectedIndex = 0; 
add:  gBuilder = setTimeout(function() {  stepListBuilder(1); gDownloadsView.selectedIndex = 0; }, 0); 
context: function buildDownloadList(){  // Clear out values before using them  clearTimeout(gBuilder);  gStmt.reset();  gSearchTerms = "";  // Clear the list before adding items by replacing with a shallow copy  let (empty = gDownloadsView.cloneNode(false)) {    gDownloadsView.parentNode.replaceChild(empty, gDownloadsView);    gDownloadsView = empty;  }  // If the search box isn't empty, trim the search terms  if (!gSearchBox.hasAttribute("empty"))    gSearchTerms = gSearchBox.value.replace(/^\s+|\s+$/, "");  let like = "%" + gStmt.escapeStringForLIKE(gSearchTerms, "/") + "%";  try {    gStmt.bindInt32Parameter(0, nsIDM.DOWNLOAD_NOTSTARTED);    gStmt.bindInt32Parameter(1, nsIDM.DOWNLOAD_DOWNLOADING);    gStmt.bindInt32Parameter(2, nsIDM.DOWNLOAD_PAUSED);    gStmt.bindInt32Parameter(3, nsIDM.DOWNLOAD_QUEUED);    gStmt.bindInt32Parameter(4, nsIDM.DOWNLOAD_SCANNING);    gStmt.bindStringParameter(5, like);  } catch (e) {    // Something must have gone wrong when binding, so clear and quit    gStmt.reset();    return;  }  // Start building the list and select the first item  stepListBuilder(1);  gDownloadsView.selectedIndex = 0;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4e84ab4153bc7dc92b503cd3b277e2a318ae43ba/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js