Closed Bug 1954983 Opened 1 month ago Closed 1 month ago

Click on Push notification does not trigger "notificationclick" when ServiceWorker no already running

Categories

(Core :: DOM: Notifications, defect)

Firefox 136
defect

Tracking

()

RESOLVED DUPLICATE of bug 1847096

People

(Reporter: xrenogubka, Unassigned)

Details

Steps to reproduce:

Using Windows 11, Firefox 136.0.2 (64-bit)

  1. SignUp for Push Notifications
  2. Receive a notification but do not click on it or close it
  3. Close Firefox
  4. 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.

Component: Untriaged → DOM: Service Workers
Product: Firefox → Core

Hi Sergey, thanks for the report! We are tracking this in bug 1847096.

Status: UNCONFIRMED → RESOLVED
Closed: 1 month ago
Component: DOM: Service Workers → DOM: Notifications
Duplicate of bug: 1847096
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.