Closed
Bug 1157644
Opened 10 years ago
Closed 10 years ago
TelemetryEnvironment is not triggering environment changes when preferences are changed
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: Dexter, Assigned: Dexter)
References
Details
Attachments
(1 file)
10.94 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
TelemetryEnvironment is not notifying environment changes when a watched preference is changed even though |test_TelemetryEnvironment.js| works.
This is happening because in [1] we're not correctly iterating the preferences Map. We've got different solutions for this:
- [1] could be changed to |for (let pref of this._watchedPrefs.keys()) {| and the tests updated accordingly to use a |Map| instead of a javascript object.
- [2] could be changed to the form |{"the.prop": TelemetryEnvironment.PREF_STATE,}|, leaving the tests as they are.
[1] - https://hg.mozilla.org/mozilla-central/annotate/a9311ec2dd39/toolkit/components/telemetry/TelemetryEnvironment.jsm#l779
[2] - https://hg.mozilla.org/mozilla-central/annotate/a9311ec2dd39/toolkit/components/telemetry/TelemetryEnvironment.jsm#l79
Assignee | ||
Updated•10 years ago
|
Updated•10 years ago
|
Assignee: nobody → alessio.placitelli
Assignee | ||
Comment 1•10 years ago
|
||
This patch fixes environment changes not being triggered on pref changes.
Attachment #8597242 -
Flags: review?(gfritzsche)
Comment 2•10 years ago
|
||
Attachment #8597242 -
Flags: review?(gfritzsche) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Keywords: checkin-needed
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•