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

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