The `FirstStartup` service added in bug 1576507 runs too early for `TelemetryEnvironment` to be available, since the latter finishes initializing after the UI is available AFAICT. This means that currently the attribution code is not available for first-run experiences delivered by Normandy. Instead, `FirstStartup` should use `AttributionCode` directly. `AttributionCode` already caches on initialization, so this will be warmed up for when `TelemetryEnvironment` invokes it later in startup;.
Bug 1578885 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The `FirstStartup` service added in bug 1576507 runs too early for `TelemetryEnvironment` to be available, since the latter finishes initializing after the UI is available AFAICT. This means that currently the attribution code is not available for first-run experiences delivered by Normandy. Instead, `ClientEnvironment` (which is used by Normandy as well as Activity Stream and Remote Settings) should use `AttributionCode` directly. `AttributionCode` already caches on initialization, so this will be warmed up for when `TelemetryEnvironment` invokes it later in startup;.