Remove version 145 train-hop shim for PrivacyFeed getTodayStats guard
Categories
(Firefox :: New Tab Page, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
Details
Attachments
(1 file)
browser/extensions/newtab/lib/Widgets/PrivacyFeed.sys.mjs guards against older platforms whose PrivacyMetricsService (Bug 2010368) lacks getTodayStats. Now that Firefox 145 has long ago reached Release, we can remove the @backward-compat { version 145 } typeof lazy.PrivacyMetricsService?.getTodayStats !== "function" early-return in updateStats().
Firefox 145 has long since reached Release, so the @backward-compat { version 145 } early-return in PrivacyFeed.updateStats() — which guarded against older platforms whose PrivacyMetricsService (Bug 2010368) lacked getTodayStats — is no longer needed. getTodayStats is present in the current PrivacyMetricsService.sys.mjs.
Removes the guard and the now-obsolete test_backward_compat_guard xpcshell test that exercised it. The remaining PrivacyFeed xpcshell tests pass (24/24).
Updated•1 month ago
|
Comment 3•1 month ago
|
||
| bugherder | ||
Updated•23 days ago
|
Description
•