Open Bug 1241543 Opened 10 years ago Updated 3 years ago

Remove deprecated `Notification.requestPermission` callback

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

Tracking Status
firefox46 --- affected

People

(Reporter: lina, Unassigned)

References

Details

(Keywords: dev-doc-needed, site-compat)

https://notifications.spec.whatwg.org/#dom-notification-permission deprecates the callback argument to `Notification.requestPermission` in favor of the promise return value. When/if the spec removes the callback, we should do the same.
Both removal from the spec and from implementations depend on us and other browser vendors to know that the deprecated feature isn't used too often. So some telemetry will be needed here.
I don't think we should actually remove it, unless it would be a significant code complexity win. The use of "deprecated" is mostly meant as an indication to web developers that there's a better alternative.
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Type: defect → task
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.