Open Bug 623925 Opened 13 years ago Updated 2 years ago

Add an attribute to sort nsIAutoCompleteResults

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: wesj, Unassigned)

Details

It would be nice if there was a simple way to force nsIAutoCompleteResults to the bottom or top of the results list. I had to work around this to get search providers into Fennec's autocomplete results by adding them to the history autocomplete rather than writing a new provider. Similarly, I think the search suggestions autocomplete provider is tied to the form history, just to ensure that the form history shows up at the top of the list.

Maybe we can add a method (getRelevanceAt?) that allowed providers to return a number integer designating the relevance/quality? of a result. Then the nsIAutoCompleteController could sort results based on it,  and the XUL could  position results accordingly (if results came out of order for some reason).
Moving to Core:XUL per https://bugzilla.mozilla.org/show_bug.cgi?id=1455336
Component: XP Toolkit/Widgets: XUL → XUL
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.