From 45157bc460494503ca2b90caa762e72d224a1ef3 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 28 May 2015 15:56:18 +0100 Subject: Custom-only: fix long-standing race condition. In omni mode, the vomnibar suggestions are updated asynchronously. Therefore, the contents of the primary custom search-engine suggestion may be behind the actual contents of the comnibar input. So, we reconstruct the custom search-engine query on "enter". (This fixes a long-standing race condition.) --- background_scripts/completion.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index d8b946a1..60e5f1df 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -505,6 +505,7 @@ class SearchEngineCompleter autoSelect: true highlightTerms: false isSearchSuggestion: true + isPrimarySuggestion: true return onComplete [ primarySuggestion ], { filter } if queryTerms.length == 0 -- cgit v1.2.3