- From: Marcos Cáceres <notifications@github.com>
- Date: Thu, 26 Aug 2021 22:46:59 -0700
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 27 August 2021 05:47:11 UTC
> This question seems backwards to me. I know, please stay with me 😅 I got myself an Android device. If I visit the [generic-sensor-demos](https://intel.github.io/generic-sensor-demos/), I runs the demos without any permission prompts and there doesn't seem to be any means for a user to disable access to those APIs via "site settings". Is that correct or am I missing something? > The question is what APIs it controls. As implemented in Chromium it corresponds to the union of "accelerometer", "gyroscope" and "magnetometer". The mapping in Chromium between the Permission API concepts and the internal representation of permissions is here. Got it: ```C++ CreatePermissionDescriptor(PermissionName::SENSORS); ``` So, just to be sure: does that mean that if a user hypothetically grants permission to "accelerometer", they also implicitly grant access to "gyroscope" and "magnetometer"? If yes, then "motion-sensors" might be appropriate here. But, if permission to generic sensors is just blanket "granted" without any permission prompt (and there is no way for the user to disable these APIs via UI), then maybe we don't need these permissions at all? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/permissions/issues/191#issuecomment-906941950
Received on Friday, 27 August 2021 05:47:11 UTC