Closed Bug 1617164 Opened 5 years ago Closed 5 years ago

No notification displayed when they are allowed through “Change whether you can receive notifications from the site” button

Categories

(Core :: DOM: Push Subscriptions, defect)

Desktop
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox73 --- wontfix
firefox74 --- wontfix
firefox75 --- wontfix

People

(Reporter: atrif, Unassigned)

References

()

Details

(Keywords: regressionwindow-wanted)

Attachments

(1 file)

Affected versions

  • 75.0a1 (20200220224950)
  • 74.0b6 (20200221001238)
  • 73.0.1 (20200217142647)

Affected platforms

  • Windows 10x64
  • Ubuntu 18.04
  • macOS 10.15

Steps to reproduce

  1. Open Firefox with a new profile and go to https://serviceworke.rs/push-payload_demo.html.
  2. Click on “Change whether you can receive notifications from the site” (message icon near padlock) and “Allow notifications”.
  3. Click on “Request sending a notification!” button.

Expected result

  • A notification is displayed after 5 seconds (refreshing the website and clicking “Request sending a notification!” button makes notifications to work as expected).

Actual result

  • Nothing happens.

Regression Range

  • Will search for one ASAP.

Notes

  • The issue is reproducible with "dom.serviceWorkers.parent_intercept" pref on true or false.

  • Attached a screen recording.

  • Also the issue is reproducible even if the website notification permission is cleared and allowed afterward.

  • The issue is not reproducible if “Allow notifications” is pressed from automatic door hanger. E.G if following next STR:

  1. Open Firefox with a new profile and load https://serviceworke.rs/push-payload_demo.html.
  2. Rapidly click on Request sending a notification! button and Allow notifications from the door hanger. Here is a screen recording for a better understanding: link.
  • Also worth mentioning that “Push Service” is shown for the website in question only when clicking “Allow notifications” by following the STR from Notes or when refreshing the page.
Has Regression Range: --- → no
Has STR: --- → yes
Component: DOM: Service Workers → DOM: Push Notifications

This is expected, the website is not handling the permission change correctly:

It calls pushManager.subscribe without having permission (which is denied for on-load prompting) and will not attempt to retry subscribing when the permission is finally granted. They should probably simply subscribe on clicking the button.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: