Open Bug 1835041 Opened 3 years ago Updated 2 years ago

Firefox Suggest add-on suggestions are displayed with a delay

Categories

(Firefox :: Address Bar, defect, P3)

Firefox 115
Desktop
All
defect

Tracking

()

Tracking Status
firefox115 --- affected

People

(Reporter: cbaica, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Found in

  • Fx 115.0a1

Affected versions

  • Fx 115.0a1

Affected platforms

  • Windows 10
  • macOS
  • Ubuntu 20

Preconditions
browser.urlbar.addons.featureGate set to true
browser.urlbar.suggest.addons set to true
browser.urlbar.quicksuggest.enabled set to true
browser.urlbar.suggest.quicksuggest.nonsponsored set to true
browser.urlbar.quicksuggest.dataCollection.enabled set to true
browser.urlbar.merino.enabled set to true
browser.urlbar.merino.providers set to amo

Steps to reproduce

  1. Launch Firefox.
  2. In the URL bar, write a keyword for an add-on suggestion.
  3. Click anywhere in the newtab page to dismiss the drop-down.
  4. Click back in the address bar.

Expected result

  • Full address bar drop-down is displayed without issues.

Actual result

  • Firefox Suggest section containing the add-on suggestion is displayed with a delay.

Regression range

  • Not a regression.

Additional notes

  • This issue does not occur when the add-on suggestion is displayed in the 'top pick' section.

:cbaica, if you think that's a regression, could you try to find a regression range using for example mozregression?

This is a pretty minor visual problem, so I'll give it P3 S4. It won't even happen in practice since addon suggestions will always be shown as top picks.

However, it's also not specific to addon suggestions and can happen with any row that has a group-relative suggested index, which includes the usual adM/Wikipedia suggestions. I can reproduce it by typing "nike" to trigger a sponsored suggestion.

I debugged it and this is what happens:

  1. UrlbarView.autoOpen() reuses the cached query context
  2. The view is closed so onQueryResults() clears the rows
  3. So then #updateResults() starts with an empty view, and when it adds rows for all the results and finally gets to the last row, which is the quick suggest row with a group-relative suggested index, it sets seenMisplacedResult to true which causes it to hide the row
  4. A little while later the query finishes and removes stale rows, which unhides the quick suggest row
Severity: S3 → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: