Closed Bug 1361996 Opened 8 years ago Closed 8 years ago

Use |requestIdleCallback| for saving prefs in |sendNewProfilePing|

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement
Points:
1

Tracking

()

RESOLVED INVALID

People

(Reporter: Dexter, Unassigned)

References

Details

In bug 1120370 we're using prefs to track if the "new-profile" ping was sent or not. To be robust to crashes, once a new-profile ping is sent, we flush the prefs to disk. This use-case could benefit from using |requestIdleCallback| which, however, isn't available outside of DOM. We should change that, by using |requestIdleCallback| or |dispatchIdleCallback|, once bug 1353206 or bug 1358476 land if we're not shutting down.
Blocks: 1120370
Points: --- → 1
Depends on: 1353206, 1358476
Priority: -- → P3
Is this still needed?
Flags: needinfo?(alessio.placitelli)
Nope, we are not using prefs anymore so this can be closed.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(alessio.placitelli)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.