Click on Push notification does not trigger "notificationclick" when ServiceWorker no already running
Categories
(Core :: DOM: Notifications, defect)
Tracking
()
People
(Reporter: xrenogubka, Unassigned)
Details
Steps to reproduce:
Using Windows 11, Firefox 136.0.2 (64-bit)
- SignUp for Push Notifications
- Receive a notification but do not click on it or close it
- Close Firefox
- Click on notification
Actual results:
The Firefox window opened with a URL of a domain where Push subscription was made
Expected results:
It should have triggered "notificationclick" event handler in ServiceWorker, just like it usually does.
If I go to "about:debugging#/runtime/this-firefox" I can see that ServiceWorker is in a "Stopped" state initially, if I receive a "Push" then it goes into "Working" state. But when you restart it without notification being displayed, you get into a situation where the ServiceWorker is in a "Stopped" state and doesn't handle the event.
I think "notificationclick" event should start the ServiceWorker just like the "push" event does.
Updated•1 month ago
|
Comment 1•1 month ago
|
||
Hi Sergey, thanks for the report! We are tracking this in bug 1847096.
Description
•