W3C home > Mailing lists > Public > public-device-apis-log@w3.org > November 2016

Re: [sensors] Should we request permission when sensor is not supported by the platform?

From: raymeskhoury via GitHub <sysbot+gh@w3.org>
Date: Tue, 22 Nov 2016 05:49:24 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-262153823-1479793762-sysbot+gh@w3.org>
(Chrome Security UX engineer chiming in) +1 to @owencm. I think that 
prompting prior to knowing whether a device is available will be a bad
 user experience (users already have many problems with prompts).

As a precedent, webrtc doesn't do this, for example if you go to 
https://webrtc.github.io/samples/src/content/getusermedia/gum/ without
 a device plugged in, you will see getUserMedia error: 
DevicesNotFoundError and there won't be a permission prompt. If you 
plug in a webcam and refresh the page, you will see a prompt.

-- 
GitHub Notification of comment by raymeskhoury
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/145#issuecomment-262153823 using
 your GitHub account
Received on Tuesday, 22 November 2016 05:49:31 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC