rem: var newIndex = Math.max(gDownloadsView.selectedIndex - 1, 0); 
add: let index = gDownloadsView.selectedIndex; 
context: function removeDownload(aDownload){  gDownloadManager.removeDownload(aDownload.getAttribute("dlid"));  var newIndex = Math.max(gDownloadsView.selectedIndex - 1, 0);  gDownloadsView.removeChild(aDownload);  gDownloadsView.selectedIndex = newIndex;}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/0a68312bc851258949fa6d1f5ab48454dcb30d6d/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js