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

> ... when the user tries to avail oneself of the option, it turns out that the browser is lacking the necessary OS permissions.

FYI Firefox rejects with `NotFoundError: The object can not be found here.` in this situation.

We find [support](https://w3c.github.io/mediacapture-screen-share/#dom-mediadevices-getdisplaymedia) for this in: _"If no sources of type T are available, [reject](https://webidl.spec.whatwg.org/#reject) p with a new [DOMException](https://webidl.spec.whatwg.org/#idl-DOMException) object whose [name](https://webidl.spec.whatwg.org/#dom-domexception-name) attribute has the value [NotFoundError](https://webidl.spec.whatwg.org/#notfounderror)."_

We take it to mean what's _"available"_ to the user agent. Firefox does the same for camera and microphone.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/281#issuecomment-1883614905 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 18:59:58 UTC