rem: .getService(Components.interfaces.nsIPrefBranchInternal); 
add: .getService(Components.interfaces.nsIPrefBranch2); 
context: function Shutdown() {  gDownloadManager.listener = null;  // Assert the current progress for all the downloads in case the window is reopened  gDownloadManager.saveState();  var pbi = Components.classes["@mozilla.org/preferences-service;1"]                      .getService(Components.interfaces.nsIPrefBranchInternal);  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");    observerService.removeObserver(gDownloadObserver, "xpinstall-download-started");  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/361daac9367ad464688c4da3c3206d18cb2ae94e/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js