add: document.commandDispatcher.suppressFocusScroll = suppressedScroll; } 
context: function delayedCloseFindBar(){  var findField = document.getElementById("find-field");  var findToolbar = document.getElementById("FindToolbar");  var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]                     .getService(Components.interfaces.nsIWindowWatcher);  if (window == ww.activeWindow) {     var focusedElement = document.commandDispatcher.focusedElement;    if (focusedElement && (focusedElement.parentNode == findToolbar ||                           focusedElement.parentNode.parentNode == findField)) {      if (gFoundLink)        gFoundLink.focus();      else        window.content.focus();    }  }  findToolbar.hidden = true;  setFindMode(FIND_NORMAL);  setFoundLink(null);  changeSelectionColor(false);  if (gQuickFindTimeout) {    clearTimeout(gQuickFindTimeout);    gQuickFindTimeout = null;      } }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b6aa552a198a46e2459e87ac476e788a3e860968/findBar.js/buggy/toolkit/components/typeaheadfind/content/findBar.js