There are 11 results displayed in the Address Bar drop-down when certain sponsored or non sponsored results are triggered
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
People
(Reporter: cfat, Assigned: adw)
References
Details
Attachments
(2 files)
[Affected Versions]:
- Firefox Nightly 96.0a1 (Build ID: 20211124155224)
- Firefox Beta 95.0b11 (Build ID: 20211123190150)
- Firefox Release 94.0.2 (Build ID: 20211117154346)
[Affected Platforms]:
- Windows 10 x64
- macOS 10.15.7
- Ubuntu 20.04 x64
[Prerequisites]:
- Have the sponsored and non sponsored suggestions enabled.
- Have the "browser.search.region" set to "US".
[Steps to reproduce]:
- Open the latest Nightly/Beta build with the profile from prerequisites.
- Open a New Tab page and type "puma".
- Observe the number of results displayed in the Address Bar drop down.
[Expected results]:
- There are 10 results displayed.
[Actual results]:
- There are 11 results displayed.
[Notes]:
- This issue is reproducible with both Remote Settings and Merino.
- This issue is reproducible with other keywords: “wikipedia”, “apple”, “rolex” etc.
- This issue is not reproducible with other keywords: “ebay”, “amazon”.
- Attached is a screen recording of the issue.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
The problem is that the muxer doesn't update usedLimits
when it adds
group-relative suggested-index results to a group. IOW it doesn't properly
account for the space taken up by group-relative suggested-index results. So in
the case described in the bug, the GENERAL_PARENT
group is recorded as not
having any results at all since it doesn't have any normal results, even though
it does have the one quick suggest result. That leaves 9 spots for remote
suggestions, and we end up with 1 heuristic + 9 suggestions + 1 quick suggest =
11 results total.
Fixing that problem revealed another small problem where _fillGroup
modifies
the passed-in limits
object when it leaves room for the suggested-index result
at the beginning, which messes up the state in the caller and affects cases
where there's recursion due to flexed children not filling up.
In addition to these two fixes, I factored out the section where _fillGroup
fills child groups into its own _fillGroupChildren
method. That way
_fillGroup
can add group-relative suggested-index results in only one place,
at the end. Currently it does it in two places depending on whether the group
has any children. That also lets us do a slight optimization when recursing to
fill up flexed children. We don't need to worry about group-relative
suggested-index results in the group at that point, so we can call the new
_fillGroupChildren
instead of _fillGroup
.
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
Reporter | ||
Comment 5•4 years ago
|
||
- I have verified that this issue is no longer reproducible using the latest Nightly 96.0a1 (Build ID: 20211206092340), on Windows 10 x64, macOS 11.6, and Linux Ubuntu 20.04 x64.
- A maximum number of 10 results are displayed now when triggering sponsored or non sponsored results in the Address Bar drop down.
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Description
•