rem: const service = Components.classes["@mozilla.org/observer-service;1"] 
add: var service = Components.classes["@mozilla.org/observer-service;1"] 
context: function Shutdown(){#ifdef MOZ_ENABLE_XREMOTE  // remove remote support  var remoteService;  remoteService = Components.classes["@mozilla.org/browser/xremoteservice;1"]                            .getService(Components.interfaces.nsIXRemoteService);  remoteService.removeBrowserInstance(window);#endif  try {    gBrowser.removeProgressListener(window.XULBrowserWindow);  } catch (ex) {  }  var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();  var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);  var enumerator = windowManagerInterface.getEnumerator(null);  enumerator.getNext();  if (!enumerator.hasMoreElements()) {    document.persist("sidebar-box", "sidebarcommand");    document.persist("sidebar-box", "width");    document.persist("sidebar-box", "src");    document.persist("sidebar-title", "value");  }  const service = Components.classes["@mozilla.org/observer-service;1"]                            .getService(Components.interfaces.nsIObserverService);  service.removeObserver(dlObserver, "dl-start");  window.XULBrowserWindow.destroy();  window.XULBrowserWindow = null;  window.browserContentListener.close();  // Close the app core.  if (appCore)    appCore.close();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/be58c57395e47adf1ed7aa0b66c16213c2a4e474/browser.js/buggy/browser/base/content/browser.js