Closed
Bug 1190837
Opened 9 years ago
Closed 9 years ago
MozSelfsupport.healthReportDataSubmissionEnabled does not work when turning off DRS / FHR
Categories
(Toolkit :: Telemetry, defect, P1)
Toolkit
Telemetry
Tracking
()
VERIFIED
FIXED
mozilla43
People
(Reporter: gfritzsche, Assigned: Dexter)
References
Details
(Whiteboard: [unifiedTelemetry])
Attachments
(1 file, 3 obsolete files)
2.85 KB,
patch
|
Dexter
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•9 years ago
|
status-firefox40:
--- → wontfix
status-firefox41:
--- → affected
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → gfritzsche
Reporter | ||
Comment 1•9 years ago
|
||
This actually works fine even with FHR disabled per pref (datareporting.healthreport.service.enabled), so we don't need to do anything here for shipping in 41. However, we need to fix this when we actually remove the datareporting service and other FHR code on desktop.
Assignee: gfritzsche → nobody
Iteration: 42.3 - Aug 10 → ---
Whiteboard: [unifiedTelemetry] [uplift4] → [unifiedTelemetry]
Reporter | ||
Comment 2•9 years ago
|
||
We could do something like this (i.e. just have a fallback for when DRS is not available) or just remove the Policy usage completely. I'm not sure offhand if removing would ever affect mobile though.
Assignee | ||
Updated•9 years ago
|
Priority: -- → P2
Reporter | ||
Updated•9 years ago
|
Priority: P2 → P1
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → alessio.placitelli
Assignee | ||
Comment 3•9 years ago
|
||
As discussed, I've changed this a bit by moving the try-catch into the defineLazyGetter block.
Attachment #8643057 -
Attachment is obsolete: true
Attachment #8656503 -
Flags: review?(gfritzsche)
Assignee | ||
Comment 4•9 years ago
|
||
Updated the commit message.
Attachment #8656503 -
Attachment is obsolete: true
Attachment #8656503 -
Flags: review?(gfritzsche)
Attachment #8656504 -
Flags: review?(gfritzsche)
Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8656504 [details] [diff] [review] abouthealth-switch Review of attachment 8656504 [details] [diff] [review]: ----------------------------------------------------------------- Please check it keeps working manually. ::: browser/components/selfsupport/SelfSupportService.js @@ +12,4 @@ > > +const PREF_FHR_UPLOAD_ENABLED = "datareporting.healthreport.uploadEnabled"; > + > +XPCOMUtils.defineLazyGetter(this, "policy", () => { Let's make it |gPolicy|.
Attachment #8656504 -
Flags: review?(gfritzsche) → review+
Assignee | ||
Comment 6•9 years ago
|
||
Note: I've manually tested this by throwing an exception into the try-catch block inside the lazy getter (e.g. policy object not available). As expected, the health report status is fetched from the prefs.
Assignee | ||
Comment 7•9 years ago
|
||
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=fd88e517731c
Attachment #8656504 -
Attachment is obsolete: true
Attachment #8656599 -
Flags: review+
https://hg.mozilla.org/mozilla-central/rev/d3d166232d2d
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Reporter | ||
Updated•9 years ago
|
Flags: qe-verify+
Comment 10•9 years ago
|
||
Verified fixed with latest 43.0a2 Developer Edition (from 2015-09-27), across platforms [1]. Based on the steps that :Dexter provided, I confirm that with DRS disabled, MozSelfSupport.healthReportDataSubmissionEnabled returns the same value as 'datareporting.healthreport.uploadEnabled' pref has. [1] Windows 7 64-bit, Mac OS X 10.11 Beta and Ubuntu 14.04 32-bit
You need to log in
before you can comment on or make changes to this bug.
Description
•