rem: uninitFindBar(); 
add: gFindBar.uninitFindBar(); 
context: function BrowserShutdown(){  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");  os.removeObserver(gXPInstallObserver, "xpinstall-install-edit-permissions");  os.removeObserver(gXPInstallObserver, "xpinstall-install-edit-prefs");  os.removeObserver(gMissingPluginInstaller, "missing-plugin");  try {    gBrowser.removeProgressListener(window.XULBrowserWindow);  } catch (ex) {  }  try {    document.getElementById("PersonalToolbar")            .controllers.removeController(BookmarksMenuController);  } catch (ex) {  }  var bt = document.getElementById("bookmarks-ptf");  if (bt) {    try {      bt.database.RemoveObserver(BookmarksToolbarRDFObserver);    } catch (ex) {    }  }  try {    var pbi = gPrefService.QueryInterface(Components.interfaces.nsIPrefBranchInternal);    pbi.removeObserver(gFormFillPrefListener.domain, gFormFillPrefListener);    pbi.removeObserver(gURLBarAutoFillPrefListener.domain, gURLBarAutoFillPrefListener);    pbi.removeObserver(gAutoHideTabbarPrefListener.domain, gAutoHideTabbarPrefListener);    pbi.removeObserver(gHomeButton.prefDomain, gHomeButton);  } catch (ex) {  }  if (gSanitizeListener)    gSanitizeListener.shutdown();  BrowserOffline.uninit();    uninitFindBar();  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(nsCI.nsIDOMChromeWindow).browserDOMWindow = null;  window.browserContentListener.close();  // Close the app core.  if (appCore)    appCore.close();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/4149066af7da39b6efca582802d9d487cd096142/browser.js/buggy/browser/base/content/browser.js