Re: [mediacapture-screen-share] Distinguish cancellations from absent OS permissions (#281)

> Permissions.query() is asynchronous, which means that checking it immediately after getDisplayMedia() rejects, is not guaranteed to result in anything truly correlated to the preceding call to getDisplayMedia().

If query() still yields `"prompt"` then the app knows it has permission and the user canceled the prompt
If query() yields `"blocked"` then it doesn't know this, but knows it can't call again without user intervention

I'd like to understand when this is insufficient. I'm ignoring a user somehow managing to reconfigure their permissions (in the OS or browser) at the exact same time they also somehow manage to dismiss the prompt.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/281#issuecomment-1883741890 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 9 January 2024 20:29:50 UTC