Closed Bug 1800184 Opened 2 years ago Closed

Quick suggest impression telemetry is recorded for results with large `rowIndex` values


(Firefox :: Address Bar, defect, P1)




109 Branch
Tracking Status
firefox108 --- fixed
firefox109 --- fixed


(Reporter: adw, Assigned: adw)




(1 file)

Rebecca noticed that the telemetry data shows a significant number of quick suggest impressions with large rowIndex values. In the data she was looking at, there were 10,000's of impressions with indexes between 10 and 20, and >10% of clients with impressions had an index >10. These are significant numbers that can't be explained by users with custom values for the maxRichResults hidden preference.

UrlbarProviderQuickSuggest records an impression for each result it adds, even if the result isn't actually visible in the view at the time the engagement happens. The only reason the result wouldn't be visible is if the query is canceled before it finishes and before the remove-stale-rows timer fires.

So the only thing I can think of is that users are triggering quick suggest results with their search strings but then hitting enter very quickly before the query finishes. UrlbarProviderQuickSuggest doesn't finish its startQuery() until it receives a response from Merino, and it will wait up to 200ms, so maybe this isn't as far-fetched as it seems. (That's true only when Merino is enabled, as it was until very recently for Beta and Nightly users.)

Regardless of the cause, it's definitely incorrect for UrlbarProviderQuickSuggest to record an impression when its result is hidden, so we should fix that anyway.

This adds result.isVisible. Like rowIndex, it's updated by the view.
UrlbarProviderQuickSuggest will skip impression telemetry updates (and
impression stats updates too) when it's false.

Please see bug 1800184 for background.

Pushed by
Don't record quick suggest impression telemetry when the result is hidden. r=dao
Blocks: 1800810

I found some cases this fix doesn't cover and filed bug 1800810 for them. That should fix everything, including index values of zero that are also present in the data.

Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch

Marking this qe-verify- because it's superseded by bug 1800810. I'll set qe-verify+ in that bug to make sure this gets covered.

Flags: qe-verify-
Flags: in-testsuite+
Severity: N/A → S2

Comment on attachment 9303001 [details]
Bug 1800184 - Don't record quick suggest impression telemetry when the result is hidden.

Beta/Release Uplift Approval Request

  • User impact if declined: This is an important fix to Firefox Suggest telemetry that we'd like sooner than later.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: Bug 1800810 should be uplifted after this one
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Not a user-visible change, has a test.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9303001 - Flags: approval-mozilla-beta?

Comment on attachment 9303001 [details]
Bug 1800184 - Don't record quick suggest impression telemetry when the result is hidden.

Approved for 108.0b3

Attachment #9303001 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.