Bug 344189: don't cancel the search autocomplete timer from stopSearch, to avoid having the caller wait indefinitely (also avoids multiple tabs opening for a single search), r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2006-07-26 02:50:27 +00:00
Родитель 9cfd8af041
Коммит 16709fda8f
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -778,18 +778,6 @@
action="return this.openSearch();"/>
#endif
<handler event="keypress" keycode="VK_RETURN"><![CDATA[
// this is a bit of a hack to ensure that even if a search is ongoing
// we will still search immediately
const contractID =
"@mozilla.org/autocomplete/search;1?name=search-autocomplete";
const nsIACSearch = Components.interfaces.nsIAutoCompleteSearch
var searchService = Components.classes[contractID]
.getService(nsIACSearch);
searchService.stopSearch();
this.onTextEntered(event);
]]></handler>
<handler event="dragdrop" phase="capturing">
nsDragAndDrop.drop(event, this.searchbarDNDObserver);
</handler>