Closed Bug 2055942 Opened 1 month ago Closed 1 month ago

Remove version 145 train-hop shim for PrivacyFeed getTodayStats guard

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED
155 Branch
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).

Depends on: 2050518
Attachment #9610288 - Attachment description: WIP: Bug 2055942 - Remove version 145 train-hop shim for PrivacyFeed getTodayStats guard → Bug 2055942 - Remove version 145 train-hop shim for PrivacyFeed getTodayStats guard. r?#home-newtab-reviewers!
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
See Also: → 2063713
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: