 var pbi = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); pbi.removeObserver("browser.download.", gDownloadPrefObserver);  var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); observerService.removeObserver(gDownloadObserver, "dl-done"); observerService.removeObserver(gDownloadObserver, "dl-cancel"); observerService.removeObserver(gDownloadObserver, "dl-failed"); observerService.removeObserver(gDownloadObserver, "dl-start"); 
function Shutdown() {  gDownloadManager.removeListener(gDownloadListener);  var pbi = Components.classes["@mozilla.org/preferences-service;1"]                      .getService(Components.interfaces.nsIPrefBranch2);  pbi.removeObserver("browser.download.", gDownloadPrefObserver);  var observerService = Components.classes[kObserverServiceProgID]                                  .getService(Components.interfaces.nsIObserverService);  observerService.removeObserver(gDownloadObserver, "dl-done");  observerService.removeObserver(gDownloadObserver, "dl-cancel");  observerService.removeObserver(gDownloadObserver, "dl-failed");    observerService.removeObserver(gDownloadObserver, "dl-start");  }
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/43455f9fc69a7b8e33dae13cc90fd333fc5448d2/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js