Closed Bug 1185568 Opened 9 years ago Closed 9 years ago

Disabling health reporter and metrics breaks the Back button

Categories

(Firefox :: Tours, defect)

38 Branch
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 42
Tracking Status
firefox42 --- fixed

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file)

If you customise your local build to disable health reporter and metrics then the Back button no longer works.

This appears to be because UITour.jsm unconditionally tries to load Metrics.jsm in order to define the DAILY_DISCRETE_TEXT_FIELD constant which never gets used (because the health reporter is disabled). (The fact that UITour.jsm uses a lazy getter is not much use when the module is needed for a top-level constant.)

However other parts of the browser try to load UITour.jsm and therefore fail.
(In reply to neil@parkwaycc.co.uk from comment #0)
> If you customise your local build to disable health reporter and metrics
> then the Back button no longer works.

Is this is a supported configuration?

If not, I would take a straightforward patch otherwise this is WONTFIX until a patch appears.
Flags: needinfo?(gfritzsche)
Well, I can work around the problem by #ifdefing the definition of UITourMetricsProvider but I'm not sure whether to use MOZ_SERVICES_HEALTHREPORT or MOZ_SERVICES_METRICS.
(In reply to Matthew N. [:MattN] from comment #1)
> (In reply to neil@parkwaycc.co.uk from comment #0)
> > If you customise your local build to disable health reporter and metrics
> > then the Back button no longer works.
> 
> Is this is a supported configuration?

Hm, i'm not sure if we have to support this for any distributions.
In general we are working with the assumption that data recording is always available on desktop (to power selfsupport and potentially other features).
I thought we have the flags for other products etc., but i'd have to investigate that.

(In reply to neil@parkwaycc.co.uk from comment #2)
> Well, I can work around the problem by #ifdefing the definition of
> UITourMetricsProvider but I'm not sure whether to use
> MOZ_SERVICES_HEALTHREPORT or MOZ_SERVICES_METRICS.

FWIW, MOZ_SERVICES_HEALTHREPORT is fine here.
Flags: needinfo?(gfritzsche)
Attached patch Possible patchSplinter Review
I moved the definition of DAILY_DISCRETE_TEXT_FIELD so it would all fall under the same #ifdef.
Attachment #8637885 - Flags: review?(gfritzsche)
Attachment #8637885 - Flags: review?(gfritzsche) → review+
Assignee: nobody → neil
Status: NEW → ASSIGNED
Thanks Neil.
https://hg.mozilla.org/mozilla-central/rev/b02f91b29878
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: