Closed michaelwasserman closed 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
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.