Closed Bug 1136071 Opened 9 years ago Closed 9 years ago

TelemetryPing/TelemetrySession need to return a promise when the initialisation is already in progress.

Categories

(Firefox Health Report Graveyard :: Client: Desktop, defect)

defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: Dexter, Assigned: Dexter)

References

Details

(Whiteboard: [ready])

Attachments

(1 file, 1 obsolete file)

Both TelemetryPing.jsm and TelemetrySession.jsm return |_delayedInitTask| if the initialisation is already in progress. We should return a promise instead.
Blocks: 1134269
Assignee: nobody → alessio.placitelli
Status: NEW → ASSIGNED
Attached patch bug1136071.patch (obsolete) — Splinter Review
This patch makes |setupChromeProcess| return a promise if the initialisation task has already in started.
Attachment #8568465 - Flags: review?(gfritzsche)
Comment on attachment 8568465 [details] [diff] [review]
bug1136071.patch

Review of attachment 8568465 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/components/telemetry/TelemetrySession.jsm
@@ +1049,5 @@
>  
>      this._log.trace("setupChromeProcess");
>  
>      if (this._delayedInitTask) {
>        this._log.error("setupTelemetry - init task already running");

Can we fix this trace (and the one below) to say "setupChromeProcess" while we're here?
Attachment #8568465 - Flags: review?(gfritzsche) → review+
Fixes the log prints.
Attachment #8568465 - Attachment is obsolete: true
Attachment #8568475 - Flags: review+
Whiteboard: [ready]
https://hg.mozilla.org/mozilla-central/rev/61a2290ead89
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: