- From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
- Date: Mon, 16 Oct 2017 11:23:41 +0000
- To: public-device-apis-log@w3.org
anssiko has just created a new issue for https://github.com/w3c/sensors: == Add [SecureContext] to derived interfaces == [This is a meta issue to track changes to the interfaces that inherit from `Sensor`.] All concrete sensors https://www.w3.org/2009/dap/#sensors that inherit from `Sensor` are only available within a secure context, since they implement https://w3c.github.io/sensors/#mitigation-strategies. However, the WebIDL spec states the following: >An interface without the `[SecureContext]` extended attribute must not inherit from another interface that does specify `[SecureContext]`. To fix this, the `[SecureContext]` extended attribute must be added to the following derived interfaces: - [ ] `AmbientLightSensor` - [ ] `ProximitySensor` - [ ] `Accelerometer` `LinearAccelerationSensor` `GravitySensor` - [ ] `Magnetometer` `UncalibratedMagnetometer` - [ ] `OrientationSensor` - [ ] `AbsoluteOrientationSensor` `RelativeOrientationSensor` - [x] `GeolocationSensor` https://github.com/WICG/geolocation-sensor/pull/9 The IDL guidance to concrete spec authors https://w3c.github.io/sensors/#example-webidl does include the `[SecureContext]` extended attribute already, so we're covered on that part. Perhaps worth looking that the prose in that section is aligned. Raised by @foolip in https://github.com/WICG/geolocation-sensor/issues/8 Please view or discuss this issue at https://github.com/w3c/sensors/issues/313 using your GitHub account
Received on Monday, 16 October 2017 11:24:55 UTC