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

Re: [sensors] granularity of Permission name for concrete/ fusion sensors

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 14 Nov 2016 14:50:33 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-260354495-1479135032-sysbot+gh@w3.org>
There is no manifest-based permissions on the Web. So I'm not 
convinced there is a good reason for developers to need to know the 
name of a permission to check whether the object they want to use has 
been granted permission to or not. i.e. I think that something like: 

```js
let s = new OrientationSensor();
permissions.query(s).then(/*...*/);
```

makes more sense than:

```js
let s = new OrientationSensor();
permissions.query(["gyroscope", "accelerometer", 
"magnetometer"]).then(/*...*/);
// or
permissions.query(["motion-sensors"]).then(/*...*/);
```

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/132#issuecomment-260354495 using
 your GitHub account
Received on Monday, 14 November 2016 14:50:40 UTC

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