зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
9cfd8af041
Коммит
16709fda8f
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче