Open Bug 1402785 Opened 7 years ago Updated 2 years ago

Require a user gesture for Notification.requestPermission()

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: annevk, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed, DevAdvocacy)

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.