Closed Bug 1824645 Opened 2 years ago Closed 1 year ago

Web Push Notifications Demo not displaying

Categories

(Core :: DOM: Push Subscriptions, defect, P2)

defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: blakewolf, Unassigned)

Details

Steps to reproduce:

  1. Visit https://webpushdemo.azurewebsites.net/
  2. Allow Notifications
  3. Click "Initiate Push"

Actual results:

No web push notification appeared.

Expected results:

Web push notification should display.

This web push worked in Chrome and Edge, but not in a fresh Firefox profile or in an older build from mozregression.

The Bugbug bot thinks this bug should belong to the 'Toolkit::Notifications and Alerts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Notifications and Alerts
Product: Firefox → Toolkit

(In reply to Blake from comment #1)

This web push worked in Chrome and Edge, but not in a fresh Firefox profile or in an older build from mozregression.

Can you give us some more details about your OS, Firefox versions tested, etc?

Flags: needinfo?(blakewolf)

(In reply to Nick Alexander :nalexander [he/him] from comment #3)

(In reply to Blake from comment #1)

This web push worked in Chrome and Edge, but not in a fresh Firefox profile or in an older build from mozregression.

Can you give us some more details about your OS, Firefox versions tested, etc?

I'm on Windows 10 (19045). I tested multiple versions going through mozregression, but couldn't find a version that ever worked. These older versions were with a fresh profile and no add-ons.

Flags: needinfo?(blakewolf)

(In reply to Blake from comment #4)

(In reply to Nick Alexander :nalexander [he/him] from comment #3)

(In reply to Blake from comment #1)

This web push worked in Chrome and Edge, but not in a fresh Firefox profile or in an older build from mozregression.

Can you give us some more details about your OS, Firefox versions tested, etc?

I'm on Windows 10 (19045). I tested multiple versions going through mozregression, but couldn't find a version that ever worked. These older versions were with a fresh profile and no add-ons.

Thanks, this is helpful. I don't think this has anything to do with recent changes to the Windows native notification presentation layer. This also doesn't work for me, but I don't know why that is so. Can you use another test site such as https://bgrins.github.io/devtools-demos/misc/notifications.html and verify that notifications themselves are working? After that, we'll want to verify that SW Push is working -- that's where the issue appears to be. Can you try the very last few demos at https://web-push-book.gauntface.com/demos/notification-examples/ and see if they work for you? (They work for me.)

Flags: needinfo?(blakewolf)

I've used this website to test on before and in the past it did work. I wasn't able to trigger a break point in ToastNotification::Init() so I suspect this is a webcompat issue.

(In reply to Nick Alexander :nalexander [he/him] from comment #5)

(In reply to Blake from comment #4)

(In reply to Nick Alexander :nalexander [he/him] from comment #3)

(In reply to Blake from comment #1)

This web push worked in Chrome and Edge, but not in a fresh Firefox profile or in an older build from mozregression.

Can you give us some more details about your OS, Firefox versions tested, etc?

I'm on Windows 10 (19045). I tested multiple versions going through mozregression, but couldn't find a version that ever worked. These older versions were with a fresh profile and no add-ons.

Thanks, this is helpful. I don't think this has anything to do with recent changes to the Windows native notification presentation layer. This also doesn't work for me, but I don't know why that is so. Can you use another test site such as https://bgrins.github.io/devtools-demos/misc/notifications.html and verify that notifications themselves are working? After that, we'll want to verify that SW Push is working -- that's where the issue appears to be. Can you try the very last few demos at https://web-push-book.gauntface.com/demos/notification-examples/ and see if they work for you? (They work for me.)

Yes, I was able to successfully receive notifications from the tests linked on both sites.

Flags: needinfo?(blakewolf)

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(tspurway)
Component: Notifications and Alerts → DOM: Notifications
Product: Toolkit → Core

Redirect a needinfo that is pending on an inactive user to the triage owner.
:janv, since the bug doesn't have a severity set, could you please set the severity or close the bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(tspurway) → needinfo?(jvarga)
Severity: -- → S3
Flags: needinfo?(jvarga)
Priority: -- → P2

https://webpushdemo.azurewebsites.net/ is dead now, is this still a problem in some other websites?

Flags: needinfo?(blakewolf)

(Closing for now, feel free to comment if you still have any issue)

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INACTIVE
Flags: needinfo?(blakewolf)
You need to log in before you can comment on or make changes to this bug.