rem: if (aDownload && (pref.getIntPref(PREF_BDM_RETENTION) == 0)) {  var dl = getDownload(aDownload.id); if (dl) dl.parentNode.removeChild(dl); }  
context: function autoRemoveAndClose(aDownload){  var pref = Cc["@mozilla.org/preferences-service;1"].             getService(Ci.nsIPrefBranch);  if (aDownload && (pref.getIntPref(PREF_BDM_RETENTION) == 0)) {    // The download manager backend removes this, but we have to update the UI!    var dl = getDownload(aDownload.id);    if (dl)      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);    var autoOpened =      !window.opener || window.opener.location.href == window.location.href;    if (autoClose && autoOpened && !gUserInteracted) {      gCloseDownloadManager();      return true;    }  }    return false;}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/a428f385224c361ff99a768e3244a86652a4bdb7/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js