W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2019

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

From: youennf via GitHub <sysbot+gh@w3.org>
Date: Fri, 25 Jan 2019 06:00:05 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-457465435-1548396004-sysbot+gh@w3.org>
> 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 https://github.com/w3c/mediacapture-main/issues/560#issuecomment-457465435 using your GitHub account
Received on Friday, 25 January 2019 06:00:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:10 UTC