Re: [mediacapture-main] Should getUserMedia promise be resolved only on pages that have focus (#560)

> Having prompts appear from background tabs is generally a UX security issue.

Right, Safari is not resolving getUserMedia promise even in the case where no prompt will be shown to user (say user granted persistent access to this website).

One could think of relaxing this rule in case the device is already capturing.
But that can probably be emulated with clone+applyConstraints so I am not sure this is worth optimizing.

I guess the idea would be to postpone the whole getUserMedia process starting at step 6 until page has focus.

GitHub Notification of comment by youennf
Please view or discuss this issue at using your GitHub account

Received on Friday, 25 January 2019 06:00:06 UTC