Contact emails:
mlam...@chromium.org
Spec:
https://w3c.github.io/permissions/
== Summary ==
The Permissions API allows a web application to be aware of the status
of a given permission, to know whether it is granted, denied or if the
user will be asked whether the permission should be granted.
The version we are shipping here is covering the following permissions:
geolocation, notifications, midi (with sysex as an option) and push
(with userVisible as an option).
In addition of querying for permissions, callers can register to be
notified if the permission changes.
== Link to “Intent to Implement” blink-dev discussion ==
https://groups.google.com/a/chromium.org/d/msg/blink-dev/wfszE6uUmk8/r9ucFjbfvY4J
== Is this feature supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)? ==
Yes. It is using content::PermissionManager which is implemented by all
the platforms above.
== Demo link ==
https://mounirlamouri.github.io/sandbox/permissions.html
The different listed permissions will be updated when the permissions
change. Clicking the buttons will do a permission request (not using the
Permissions API but using some specific API calls).
== Compatibility Risk ==
Mozilla is planning to ship this but it is not yet a priority for them.
I have been working closely with Marcos Caceres on the API design.
Otherwise, Microsoft seemed interested. No feedback from Apple.
The risk might be that the API isn’t flexible enough to handle future
permissions but it is hard to predict that and there is a need today for
current permissions so it is a risk that we must take to solve the
current situation.
This document describe the approach to extensibility with some examples:
https://github.com/w3c/permissions/blob/gh-pages/extensibility.md
== OWP launch tracking bug? ==
https://code.google.com/p/chromium/issues/detail?id=432570
== Link to entry on the feature dashboard ==
https://www.chromestatus.com/features/6376494003650560
Thanks,
-- Mounir