add:   gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex;  gDownloadsView.selectedItem.focus(); 
context: function onDownloadPause(aEvent){  var uri = aEvent.target.id;  gDownloadManager.pauseDownload(uri);  setRDFProperty(uri, "DownloadStatus", aEvent.target.getAttribute("status-internal"));  setRDFProperty(uri, "ProgressPercent", aEvent.target.getAttribute("progress"));}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/11bd6bff69b485c82262126f8b4c7d00bac721a7/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js