gPrefService.removeObserver(gURLBarAutoFillPrefListener.domain, gURLBarAutoFillPrefListener); 
function BrowserShutdown(){  try {    TextZoom.destroy();    ContentPrefSink.destroy();  }  catch(ex) {    Components.utils.reportError(ex);  }  var os = Components.classes["@mozilla.org/observer-service;1"]    .getService(Components.interfaces.nsIObserverService);  os.removeObserver(gSessionHistoryObserver, "browser:purge-session-history");  os.removeObserver(gXPInstallObserver, "xpinstall-install-blocked");  try {    gBrowser.removeProgressListener(window.XULBrowserWindow);  } catch (ex) {  }#ifdef MOZ_PLACES_BOOKMARKS  PlacesUtils.bookmarks.removeObserver(gBookmarksObserver);#else  try {    document.getElementById("PersonalToolbar")            .controllers.removeController(BookmarksMenuController);  } catch (ex) {  }  var bt = document.getElementById("bookmarks-ptf");  if (bt) {    try {      bt.database.RemoveObserver(BookmarksToolbarRDFObserver);    } catch (ex) {    }  }#endif  try {    gPrefService.removeObserver(gURLBarAutoFillPrefListener.domain,                                gURLBarAutoFillPrefListener);    gPrefService.removeObserver(gAutoHideTabbarPrefListener.domain,                                gAutoHideTabbarPrefListener);    gPrefService.removeObserver(gHomeButton.prefDomain, gHomeButton);  } catch (ex) {    Components.utils.reportError(ex);  }  if (gSanitizeListener)    gSanitizeListener.shutdown();  BrowserOffline.uninit();  // Store current window position/size into the window attributes   // for persistence.  var win = document.documentElement;  win.setAttribute("x", window.screenX);  win.setAttribute("y", window.screenY);  win.setAttribute("height", window.outerHeight);  win.setAttribute("width", window.outerWidth);  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");  }  window.XULBrowserWindow.destroy();  window.XULBrowserWindow = null;  window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)        .getInterface(Components.interfaces.nsIWebNavigation)        .QueryInterface(Components.interfaces.nsIDocShellTreeItem).treeOwner        .QueryInterface(Components.interfaces.nsIInterfaceRequestor)        .getInterface(Components.interfaces.nsIXULWindow)        .XULBrowserWindow = null;  window.QueryInterface(Ci.nsIDOMChromeWindow).browserDOMWindow = null;  // Close the app core.  if (appCore)    appCore.close();}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/f8eb26511dbad593009196d398828d1fb4684ad2/browser.js/buggy/browser/base/content/browser.js