case "cmd_cleanUp": return gDownloadManager.canCleanUp; case "cmd_remove": return gDownloadsView.selectedItem != null; 
case "cmd_cancel": return dl.inProgress; case "cmd_open": case "cmd_show": let file = getLocalFileFromNativePathOrUrl(dl.getAttribute("file")); return dl.openable && file.exists(); case "cmd_pause": return dl.inProgress && !dl.paused; case "cmd_pauseResume": return dl.inProgress || dl.paused; case "cmd_resume": return dl.paused; case "cmd_remove": case "cmd_retry": return dl.removable; case "cmd_showInfo": return true; 
  isCommandEnabled: function (aCommand)  {    if (!window.gDownloadsView)      return false;        switch (aCommand) {    case "cmd_cleanUp":      return gDownloadManager.canCleanUp;    case "cmd_remove":      return gDownloadsView.selectedItem != null;    }    return false;  },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/43455f9fc69a7b8e33dae13cc90fd333fc5448d2/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js