Open Bug 1952896 Opened 9 days ago Updated 9 days ago

Migrate to PServiceWorkerRegistration method from PNotification for service-worker-bound notifications

Categories

(Core :: DOM: Notifications, task)

task

Tracking

()

People

(Reporter: saschanaz, Unassigned)

References

(Depends on 1 open bug)

Details

PNotification makes total sense for page-bound notifications but less for SW-bound ones, because their lifetime spans much longer than the page's lifetime. As bug 1948339 is moving SW handling from PNotification to a longer-living observer, we should be able to ultimately add PServiceWorkerRegistration::ShowNotification that uses creates this observer directly instead of having to create PNotification.

(We had to use PNotification for every notification as that was what the existing code did - always binding the lifetime to the page, but we want to migrate away from that.)

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