Closed Bug 1026850 Opened 10 years ago Closed 6 years ago

Experiment system might get active experiment in a confused state if telemetry was disabled

Categories

(Firefox Health Report Graveyard :: Client: Desktop, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Felipe, Unassigned, Mentored)

Details

(Whiteboard: [measurement:client] [lang=js])

Attachments

(1 file)

STR: - install an experiment - disable telemetry (or anything that causes gExperimentsEnabled to become false) - restart browser After a restart, the experiment was disabled, but if you go to the Experiments tab in the Add-ons Manager, you'll see it as "Complete - NaN days ago". I don't recall if the experiment also got fully uninstalled after a subsequent restart, but I think it did (it's probably the right behavior). So it looks like only the UI might be messed up, but I didn't investigate deeply.
I did a quick investigation here. This shouldn't happen for normal users because the experiments manager observes toolkit.telemetry.enabled - if you disable telemetry we stop & uninstall any running experiments. So what's required to reproduce this is to either: (1) have telemetry disabled & force experiments to initialize or (2) have an active experiment, shutdown Firefox, manually set the pref to false in $PROFILEDIR/prefs.js or (3) disable telemetry when an experiment is active, but crash/throw so that we don't get to actually uninstalling the experiment (3) is an actual, but less likely concern. We should probably fix this by checking & uninstalling any stale addons in ExperimentsService.js when experiments are not enabled.
Flags: firefox-backlog+
Whiteboard: p=3
When we find experiments are disabled around here: http://hg.mozilla.org/mozilla-central/annotate/37f08ddaea48/browser/experiments/ExperimentsService.js#l72 ... we should check for any remaining experiment addons and just uninstall them. The two functions here show how to get the installed experiment addons and uninstall them: http://hg.mozilla.org/mozilla-central/annotate/37f08ddaea48/browser/experiments/Experiments.jsm#l208
Mentor: georg.fritzsche
Whiteboard: p=3 → p=3 [qa+] [lang=js]
Whiteboard: p=3 [qa+] [lang=js] → [lang=js]
Priority: -- → P4
Whiteboard: [lang=js] → [measurement:client] [lang=js]
Attached image issue.png
Looks like this is still an issue. I ran into this today while going through bug # 1003362. Once the experiment was disabled and about:addons refreshed, the "Complete" field appeared as "NaN days ago" (attached screenshot).
Telemetry experiments were removed from Firefox per bug 1415284.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: