Closed
Bug 1408433
Opened 7 years ago
Closed 7 years ago
Telemetry Experiments no longer needs to check toolkit.telemetry.enabled
Categories
(Toolkit :: Telemetry, enhancement, P1)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | fixed |
People
(Reporter: chutten, Assigned: chutten, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [good second bug][lang=js])
Attachments
(1 file)
After bug 1406391, toolkit.telemetry.enabled will no longer be able to be changed. Already all UI allowing users to change it has been removed. browser/experiments/Experiments.jsm no longer needs to observe or respond to changes in this pref. Code concerning these actions should be removed. The test toolkit/mozapps/extensions/test/browser/browser_experiments.js can also have its toolkit.telemetry.enabled-related code removed. This might break some tests in this suite, so be sure to check that they still work after the removal.
Comment 1•7 years ago
|
||
Note that Experiments.jsm still needs to decide on startup whether it will enable (pre-release) or disable (release).
Assignee | ||
Updated•7 years ago
|
Summary: Telemetry Experiments no longer needs to check → Telemetry Experiments no longer needs to check toolkit.telemetry.enabled
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Assignee: nobody → chutten
Priority: P3 → P1
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8921566 [details] bug 1408433 - Remove toolkit.telemetry.enabled code from Experiments https://reviewboard.mozilla.org/r/192586/#review197954 ::: browser/experiments/Experiments.jsm:396 (Diff revision 1) > > init() { > this._shutdown = false; > configureLogging(); > > - gExperimentsEnabled = gPrefs.getBoolPref(PREF_ENABLED, false) && TelemetryUtils.isTelemetryEnabled; > + gExperimentsEnabled = gPrefs.getBoolPref(PREF_ENABLED, false); I think this should be changed to `gExperimentsEnabled = gPrefs.getBoolPref(PREF_ENABLED, false) && Services.telemetry.canRecordExtended;` since we don't want experiments to run with telemetry extended disabled (that's the reason why it was checking the pref before). I know that nobody should be really running experiments anymore, but let's preserve this behaviour while the code is still around. Since `canRecordExtended` is only set once, we don't really need to watch for the pref changes: we're good to remove the rest of the things you removed!
Updated•7 years ago
|
status-firefox57:
--- → wontfix
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8921566 [details] bug 1408433 - Remove toolkit.telemetry.enabled code from Experiments https://reviewboard.mozilla.org/r/192586/#review198462 Looks good now, thanks!
Attachment #8921566 -
Flags: review?(alessio.placitelli) → review+
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9bfd4b0927dc Remove toolkit.telemetry.enabled code from Experiments r=Dexter
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9bfd4b0927dc
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment 8•7 years ago
|
||
Backed out in https://hg.mozilla.org/mozilla-central/rev/ad08d9064a7d while backing out bug 1406391
Status: RESOLVED → REOPENED
status-firefox58:
fixed → ---
Resolution: FIXED → ---
Target Milestone: mozilla58 → ---
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/633443ef47bb Remove toolkit.telemetry.enabled code from Experiments r=Dexter
Comment 10•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/633443ef47bb
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/633443ef47bb
You need to log in
before you can comment on or make changes to this bug.
Description
•