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: Lukasz Olejnik via GitHub <sysbot+gh@w3.org>
Date: Tue, 15 Nov 2016 15:15:06 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-260668227-1479222905-sysbot+gh@w3.org>
> So would you ask the user for permission to use a gyroscope despite 
them not having any?

My understanding is it's an API call. An API fenced behind a 
permission mechanism. 

It doesn't matter what happens behind the scenes after the API is 
called. Consider an operating system enforcing OS permissions for apps
 wishing to access the underlying hardware sensor. What happens if a 
particular browser does not have an OS-level permission to access a 
particular sensor?  

>From a website perspective, this sensor is not providing any data. So 
the website has a permission to access the API, but it so happens that
 the API is simply not returning much (because the browser cannot 
access a particular sensor).

GitHub Notification of comment by lknik
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/145#issuecomment-260668227 using
 your GitHub account
Received on Tuesday, 15 November 2016 15:15:16 UTC

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