Closed Bug 1750735 Opened 3 years ago Closed 3 years ago

Narrate telemetry tries to record 'null' language voice selection telemetry

Categories

(Toolkit :: Reader Mode, defect, P3)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox98 --- wontfix
firefox99 --- fixed

People

(Reporter: Gijs, Assigned: hujintao)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When running reader mode mochitests, we log:

Console message: [JavaScript Error: "Not a string"]

It turns out (pernosco is so useful sometimes... needed a recording for bug 1659193 and decided to get to the bottom of this while there, though I don't think it's directly related) that this is a result of the telemetry calls at https://searchfox.org/mozilla-central/rev/8d108a59d067ce37671090b0b1972ee8adfb7196/toolkit/components/narrate/NarrateControls.jsm#199,204 . It's possible for language to be null, and then telemetry complains that the key variable is not a string.

We should still log telemetry in that case, but probably for some useful key like unknown-language or whatever. Niklas/Micah: I'm adding this to bug 1748655 because it should be a pretty straightforward fix, and running the existing reader mode browser mochitests and checking the logs can be used to verify whether things worked.

(I also pinged bug 1324774 to get these errors to be more useful...)

Severity: -- → S3
Priority: -- → P1
Priority: P1 → P3
Assignee: nobody → hujintao
Status: NEW → ASSIGNED
Pushed by mtigley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4618dbb95a23 Substitute null value with string 'unknown-language'. r=mtigley
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: