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

Concrete proposal - following the example set by [RTCError](https://w3c.github.io/webrtc-pc/#rtcerror-interface), we extend DOMException as follows:
```webidl
enum NotAllowedReason {
  kUserRejected,
  kOperatingSystemDisallowed,
};

dictionary GetDisplayMediaNotAllowedErrorInit {
  required NotAllowedReason reason;
};

interface GetDisplayMediaNotAllowedError : DOMException {
  constructor(GetDisplayMediaNotAllowedErrorInit init, optional DOMString message = "");
  readonly attribute NotAllowedReason reason;
};
```

Wdyt?

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


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

Received on Thursday, 28 September 2023 14:21:07 UTC