Re: [mediacapture-screen-share] CaptureController.setFocusBehavior() while promise pending or after it is rejected (#252)

Good observation, though maybe it's a natural consequence of our unusual pattern? But more importantly, do we want `setFocusBehavior` throw or not here?
```js
const controller = new CaptureController();
const p = navigator.mediaDevices.getDisplayMedia({controller});
controller.setFocusBehavior("focus-captured-surface"); // to throw or not to throw...
```
If we do, then that _is_ detecting failure synchronously. Why is that problematic? I think I'd prefer not throwing at all over throwing based on timing.

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


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

Received on Tuesday, 8 November 2022 16:09:40 UTC