Require a user gesture for Notification.requestPermission()

NEW
Unassigned

Status

()

enhancement
P2
normal
2 years ago
a month ago

People

(Reporter: annevk, Unassigned)

Tracking

(Blocks 1 bug, {dev-doc-needed, DevAdvocacy})

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
See https://github.com/whatwg/notifications/issues/108.

This would reduce the amount of "dialog spam" users get to see.

To make this work we need to do these things:

* Measure how often requestPermission() is invoked without user gesture.
* Note in the developer console that requestPermission() without user gesture is deprecated to drive down the measurement and create awareness.

Potentially we should also do some outreach, e.g., a blog post?
Priority: -- → P2
Do you know if the same happens for ServiceWorkerContainer.register too (this is used to register with the browser for Push Notifications)?
Component: DOM → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.