Bug 2014296 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Bug 1995362 added the `quicksuggest.online.available` pref to [the group of prefs](https://searchfox.org/firefox-main/rev/c206271d981e72dac0fdd91625b2c0709129a7d6/browser/components/urlbar/UrlbarController.sys.mjs#1639-1646) that `TelemetryEvent` records in the metrics ping, but it's not working right.

`TelemetryEvent` isn't a global, it's per browser window. So every time a window is opened, that code runs and records all those prefs again. (Which is a whole other problem, but I'm trying to ignore that for now.) The problem is that, when that happens, the code only looks at the pref value and not the Nimbus variable value. So if there's an experiment installed that sets the variable and then the user opens a new window, `quicksuggest.online.available` is recorded as false even though the Nimbus variable -- the effective value -- is true.

Nadia discovered the problem in the data when analyzing the new online Suggest M4 experiment.
Bug 1995362 added the `quicksuggest.online.available` pref to [the group of prefs](https://searchfox.org/firefox-main/rev/c206271d981e72dac0fdd91625b2c0709129a7d6/browser/components/urlbar/UrlbarController.sys.mjs#1639-1646) that `TelemetryEvent` records in the metrics ping, but it's not working right.

`TelemetryEvent` isn't a global, it's per browser window. So every time a window is opened, that code runs and records all those prefs again. (Which is a whole other problem, but I'm trying to ignore that for now.) The problem is that, when that happens, the code only looks at the pref value and not the Nimbus variable value. So if there's an experiment installed that sets the variable and then the user opens a new window, `quicksuggest.online.available` is recorded as false even though the Nimbus variable -- the effective value -- is true.

Nadia discovered the problem in the data when analyzing the [new online Suggest M4 experiment](https://experimenter.services.mozilla.com/nimbus/privacy-enhancing-firefox-suggest-m31-follow-on/summary/).

Back to Bug 2014296 Comment 0