Open Bug 1815380 Opened 2 years ago Updated 10 months ago

clients.openWindow always falls into catch and is never resolved

Categories

(Fenix :: Push, defect)

Firefox 109
All
Android
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: borci10, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Steps to reproduce:

Click any push notification.

self.addEventListener('notificationclick', (event: NotificationEvent) =>
{
// Prevent other listeners from receiving the event
event.stopImmediatePropagation();

  // Close notification
  event.notification.close();

  event.waitUntil(self.clients.openWindow('https://example.com').then(windowClient =>
  {
    console.log(windowClient)
  }).catch(error =>
  {
    console.log(error)
  }));
});

Actual results:

Throws undefined error on Android.

Its not working on (promise is not resolved):

  • Firefox (Android 7.0) - 109.1.1

Its working on (promise is resolved):

  • Firefox Desktop (Windows) - 109.0.1
  • Firefox Desktop (MAC) - 109.0.1
  • Chrome Desktop (Windows) - 109.0.5414.120
  • Chrome Desktop (MAC) - 109.0.5414.119
  • Chrome (Android 7.0) - 109.0.5414.85
  • Edge (Windows) - 109.0.1518.78

Expected results:

I need the promise to be resolved

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
Flags: needinfo?(cpeterson)
See Also: → 1825910
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.