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

> We could add a note in the section that returns `NotFoundError` to state that `OS preventing all access to display surfaces` is a reason for not having any source and leads to `NotFoundError`.

I like this idea.

> I wonder if a subclass, `GetDisplayMediaNotAllowedError : DOMException`, that has its name set to `NotFoundError`, might be a good way to give developers something clearer while keeping the existing Firefox behavior intact?

What would this solve? Inheriting off DOMException is normally only done to add members to the interface.

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


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

Received on Wednesday, 14 February 2024 23:39:54 UTC