Order of results in search mode is wrong if "Show search suggestions before history" is unchecked
Categories
(Firefox :: Address Bar, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: mak, Assigned: mak)
References
Details
Attachments
(1 file)
When restricting to search (with ?) we used to put suggestions first, history after, basically we use matchBucketsSearch instead of matchBuckets.
This is done here: https://searchfox.org/mozilla-central/source/browser/components/urlbar/UrlbarMuxerUnifiedComplete.jsm#129
Apparently the heuristic doesn't have anymore RESULT_TYPE.SEARCH in search mode, and that breaks the ordering.
I'm probably going to change the RESULT_TYPE in bug 1663686, that may also fix this bug.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Ok, I was misremebering, we stopped setting matchBucketsSearch, and that means there's no special sorting depending on the heuristic result... Though it still seems to make sense to put history later in search mode with an engine.
In reality we are now discussing again whether browsing history should be shown or not. So I guess I won't fix this in bug 1663686 for now.
Assignee | ||
Comment 2•4 years ago
|
||
from a long discussion in #search, while here I should look at why restyleSearches is removing all the non-restyled results, make the redirects filter in UnifiedComplete depending on that pref (filter targets if we restyle).
Assignee | ||
Comment 3•4 years ago
|
||
- always keep search suggestions for
- use restyleSearches only in search mode to get cleaner history results and dedupe against search history
- filter redirects differently depending on restyleSearches
Assignee | ||
Updated•4 years ago
|
Comment 5•4 years ago
|
||
bugherder |
Description
•