rem: gCanAutoClose && !gUserInteracted) 
add: gCanAutoClose && !gUserInteracted) { 
context: function autoRemoveAndClose(aDownload){  var pref = Components.classes["@mozilla.org/preferences-service;1"]                       .getService(Components.interfaces.nsIPrefBranch);  var autoRemove = false;  try {    // this can throw, since it doesn't exist    autoRemove = pref.getBoolPref(PREF_BDM_RETENTION);  } catch (e) { }  if (dl && autoRemove) {    // The download manager backed removes this, but we have to update the UI!    var dl = getDownload(aDownload.id);    dl.parentNode.removeChild(dl);  }    if (gDownloadManager.activeDownloadCount == 0) {    // For the moment, just use the simple heuristic that if this window was    // opened by the download process, rather than by the user, it should auto-close    // if the pref is set that way. If the user opened it themselves, it should    // not close until they explicitly close it.    var autoClose = pref.getBoolPref(PREF_BDM_CLOSEWHENDONE);    if (autoClose && (!window.opener ||                      window.opener.location.href == window.location.href) &&        gCanAutoClose && !gUserInteracted)      gCloseDownloadManager();  }}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/2b1b671c1dee9c770961931e26f8b4f49345197e/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js