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)

defect

Tracking

()

VERIFIED FIXED
mozilla43
Tracking Status
firefox40 --- wontfix
firefox41 --- wontfix
firefox42 --- affected
firefox43 --- verified

People

(Reporter: gfritzsche, Assigned: Dexter)

References

Details

(Whiteboard: [unifiedTelemetry])

Attachments

(1 file, 3 obsolete files)

      No description provided.
Assignee: nobody → gfritzsche
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
Blocks: 1122482
No longer blocks: 1120356
Iteration: 42.3 - Aug 10 → ---
Whiteboard: [unifiedTelemetry] [uplift4] → [unifiedTelemetry]
Attached patch WIP (obsolete) — Splinter Review
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.
Priority: -- → P2
Priority: P2 → P1
Assignee: nobody → alessio.placitelli
Attached patch abouthealth-switch (obsolete) — Splinter Review
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)
Attached patch abouthealth-switch (obsolete) — Splinter Review
Updated the commit message.
Attachment #8656503 - Attachment is obsolete: true
Attachment #8656503 - Flags: review?(gfritzsche)
Attachment #8656504 - Flags: review?(gfritzsche)
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+
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.
https://hg.mozilla.org/mozilla-central/rev/d3d166232d2d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Flags: qe-verify+
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
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: