Open Bug 1921206 Opened 2 years ago Updated 2 years ago

Consider moving PushNotificationsCleaner logic into ClearDataService

Categories

(Toolkit :: Data Sanitization, task, P3)

task

Tracking

()

People

(Reporter: emz, Unassigned)

References

Details

Currently the cleanup logic lives entirely in PushService.sys.mjs. We should consider moving it to the cleaner itself in ClearDataService. The cleaner could iterate over all entries and do the filtering itself and only tell the PushService which particular entries to remove. This has the advantage that the PushService itself does not need to have specialized clearing code (e.g. clearing specific partitions etc.).

This came up in the review for https://phabricator.services.mozilla.com/D221336

Edit: We need to keep in mind that GeckoView has its own implementation GeckoViewPush.sys.mjs that would need to support this behavior too.

You need to log in before you can comment on or make changes to this bug.