Closed Bug 1921072 Opened 4 months ago Closed 4 months ago

Fix impression telemetry warning for restrict keywords and token alias engines results

Categories

(Firefox :: Address Bar, task, P2)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: mcheang, Assigned: mcheang)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

After Bug 1917992 landed, I noticed an warning:

 0:10.17 INFO Console message: [JavaScript Warning: 
"urlbar.impression.restrict_keyword_bookmarks - Unknown scalar."]

I need to add impression telemetry for restrict keywords to fix the warning.

Blocks: 1893749

After discussing with Marco, we decided not to add urlbar.impression.restrict_keyword_bookmarks. The warning also occurred for urlbar.impression.searchengines because those were not being recorded either.

The urlbar.impression.* code is designed to record URL impressions. We chose not to add categories like searchengines or restrict_keyword_* because these are not URL results.

Solution

The fix for this patch is to add an extra conditional check:

  • If the result is a URL, we record a urlbar.impression.*.
  • If the result is not a URL, we do not record it.
Summary: Add impression telemetry for restrict keywords → Fix impression telemetry warning for restrict keywords and token alias engines results
Pushed by mcheang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1d593d8df4b2 Fix impression telemetry warning for restrict keywords and token alias engines results. r=mak,urlbar-reviewers
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: