rem: var findField = document.getElementById("find-field"); var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); if (window == ww.activeWindow && document.commandDispatcher.focusedElement && document.commandDispatcher.focusedElement.parentNode.parentNode == findField) { _content.focus(); }  var findToolbar = document.getElementById("FindToolbar"); findToolbar.hidden = true; gTypeAheadFindBuffer = ""; changeSelectionColor(false); if (gQuickFindTimeout) { clearTimeout(gQuickFindTimeout); gQuickFindTimeout = null; } 
add:  setTimeout(delayedCloseFindBar, 0); 
context: function closeFindBar(){  var findField = document.getElementById("find-field");  var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]                     .getService(Components.interfaces.nsIWindowWatcher);  if (window == ww.activeWindow && document.commandDispatcher.focusedElement &&      document.commandDispatcher.focusedElement.parentNode.parentNode == findField) {    _content.focus();  }  var findToolbar = document.getElementById("FindToolbar");  findToolbar.hidden = true;  gTypeAheadFindBuffer = "";  changeSelectionColor(false);  if (gQuickFindTimeout) {    clearTimeout(gQuickFindTimeout);    gQuickFindTimeout = null;      } }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/9f83dd23177b8a27c0dd46926b72c012a3181b15/findBar.js/buggy/toolkit/components/typeaheadfind/content/findBar.js