Re: [mediacapture-main] Clarify when the application can retry getUserMedia after it returns "InvalidStateError" due to the window not being in focus (#763)

@q-alex-zhao I think there's some confusion. Not having focus never produces `InvalidStateError`.

> The [media capture spec](https://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediadevices-getusermedia) says:
> 
> > If the relevant settings object's responsible document is NOT fully active, return a promise rejected with a DOMException object whose name attribute has the value "InvalidStateError".

This sentence is not about focus, but about [calling getUserMedia() in a discarded browsing context](https://searchfox.org/mozilla-central/rev/2a24205479519e70c0574929f45730d285141584/testing/web-platform/tests/mediacapture-streams/MediaDevices-after-discard.https.html#13,30).

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


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

Received on Thursday, 14 January 2021 16:20:05 UTC