webscreens / screen-enumeration

Screen enumeration API explainer
Apache License 2.0
23 stars 4 forks source link

Describe support for permission API status queries #33

Closed michaelwasserman closed 4 years ago

michaelwasserman commented 4 years ago

See information about the existing permission API: https://w3c.github.io/permissions/#permissions-interface https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus

We should support exposing the site's Screen Enumeration (& Window Placement) permission status via this API. That would allow sites to detect whether the permission has been granted, denied, or if attempted feature usage would prompt the user, etc.

michaelwasserman commented 4 years ago

This is covered in the newly consolidated proposal at the window-placement repo: https://github.com/webscreens/window-placement/blob/master/EXPLAINER.md#add-permission-api-support-for-a-new-window-placement-entry