-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update explainer.md #7
Conversation
b1tr0t
commented
Dec 19, 2023
- Edited for flow/readability
- Added a challenge we intend to address with PEPC (insufficiency of existing mitigations)
- Added a rejected alternative, an allow list based approach
- Edited for flow/readability - Added a challenge we intend to address with PEPC (insufficiency of existing mitigations) - Added a rejected alternative, an allow list based approach
of the user's interaction in the content area, and the user's intent. | ||
|
||
![](images/image1.png) \ | ||
*Example 1. A notification permission prompt on a news site (contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example seems contrived... for Notifications, the API doesn't require a user gesture to request permission.
to confirm, try this in on any site via the developer console (i.e., without user activation)
Notification.requestPermission()
That's a flaw in the Notifications API (which we should fix collectively as user agents), but the notification prompt is not resulting from the user clicking - the site can show the permission prompt at any time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a real-world scenario that I've personally experienced several times. The notifications API might not require a user gesture, but for some reason it seems that some sites will request the notification permission as soon as a click happens in the page.
As much of the team is now out on holidays, I'll get back on this in the new year. Thanks so much for the detailed analysis! Happy holidays and new year! |
Co-authored-by: Marcos Cáceres <[email protected]>
Co-authored-by: Marcos Cáceres <[email protected]>
I have extracted the generic pieces of feedback into #8. For the rest of them, I have accepted the 2 edit suggestions and I will follow-up with another PR to cover the more involved suggestions (event names, and mentioning the time-to-interaction signal). |