Convert TelemetryFeed.jsm into an ESM
Categories
(Firefox :: New Tab Page, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
(Regressed 1 open bug)
Details
(Whiteboard: [esmification-timeline])
Attachments
(4 files)
TelemetryFeed uses the injection system in its unit test which is incompatible with ESMs. This means that prior to converting the module, we must convert TelemetryFeed.test.js into an xpcshell test. This bug covers doing both things.
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Prior to this patch, we would add preference observers during TelemetryFeed.init,
but never remove them on uninit. In the common case, a TelemetryFeed is only ever
created once, so this is mostly fine - but in rare cases (for example, a user chooses
to disable and re-enable TelemetryFeed multiple times via prefs) or in automated
testing (where we create, init and destroy many instances of TelemetryFeed), failing
to remove preference observers means that we keep the feed alive even after its
uninitted, and also continue to have it react to preference changes.
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D197729
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D197730
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D197731
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/13c3b418aaed
https://hg.mozilla.org/mozilla-central/rev/d2435c55c2d5
https://hg.mozilla.org/mozilla-central/rev/81d8db80d8ac
https://hg.mozilla.org/mozilla-central/rev/cb76a44a3e41
Description
•