No notification displayed when they are allowed through “Change whether you can receive notifications from the site” button
Categories
(Core :: DOM: Push Subscriptions, defect)
Tracking
()
People
(Reporter: atrif, Unassigned)
References
()
Details
(Keywords: regressionwindow-wanted)
Attachments
(1 file)
2.36 MB,
image/gif
|
Details |
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
- Open Firefox with a new profile and go to https://serviceworke.rs/push-payload_demo.html.
- Click on “Change whether you can receive notifications from the site” (message icon near padlock) and “Allow notifications”.
- 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:
- Open Firefox with a new profile and load https://serviceworke.rs/push-payload_demo.html.
- Rapidly click on
Request sending a notification!
button andAllow 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.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
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.
Updated•5 years ago
|
Description
•