Skip to content

Commit 8c32019

Browse files
author
Raphael Kubo da Costa
committed
Editorial: Stop requiring sensor permissions names to be a non-empty set.
Related to w3c/ambient-light#79, where we want to replace the "ambient-light" powerful feature with an integration with the Media Capture and Streams spec by only providing illuminance readouts if the same page has an active local video source. In this case, we rely on the Media Capture and Streams' permission model, as having an active local video source implicitly means the "camera" permission has already been granted. Mention the Ambient Light Sensor case and change the requirement for the snesor permissions name set.
1 parent 4b38bb1 commit 8c32019

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

index.bs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@ urlPrefix: https://w3c.github.io/geolocation-sensor/; spec: GEOLOCATION-SENSOR
8484
urlPrefix: https://w3c.github.io/proximity; spec: PROXIMITY
8585
type: dfn
8686
text: ProximitySensor; url: proximity-sensor-interface
87+
urlPrefix: https://w3c.github.io/mediacapture-main/; spec: MEDIACAPTURE-STREAMS
88+
type: dfn
89+
text: stopped; url: source-stopped
8790
</pre>
8891
<pre class=link-defaults>
92+
spec: mediacapture-streams; type:dfn; text:source
8993
spec: webidl; type:dfn; text:attribute
9094
spec: webidl; type:dfn; text:dictionary member
9195
spec: webidl; type:dfn; text:identifier
@@ -448,6 +452,11 @@ payment service from within an iframe.
448452

449453
Access to [=sensor readings=] are controlled by the Permissions API [[!PERMISSIONS]].
450454

455+
Note: in specific cases such as [[AMBIENT-LIGHT]], integration with the
456+
Permissions API is done indirectly -- illuminance readings are provided only
457+
when at least one local video [=source=] is not [=muted=] or [=stopped=]. By
458+
definition, that implies the <a permission>"camera"</a> permission has been granted.
459+
451460
<h3 id="mitigation-strategies-case-by-case">Mitigation strategies applied on a case by case basis</h3>
452461

453462
Each [=sensor type=] will need to be assessed individually,
@@ -778,10 +787,13 @@ A [=sensor type=] has a [=ordered set|set=] of <dfn export>associated sensors</d
778787

779788
A [=sensor type=] may have a [=default sensor=].
780789

781-
A [=sensor type=] has a [=set/is empty|nonempty=] [=ordered set|set=] of associated
782-
[=powerful feature/names=] referred to as <dfn export>sensor permission names</dfn>.
790+
A [=sensor type=] has a [=ordered set|set=] of associated [=powerful
791+
feature/names=] referred to as <dfn export>sensor permission names</dfn>.
783792

784793
Note: multiple [=sensor types=] may share the same [=powerful feature/name=].
794+
In specific cases, [=extension specifications=] might choose to define an
795+
[=set/empty=] set of [=sensor permission names=] if their permission model is
796+
integrated with that of another specification.
785797

786798
A [=sensor type=] has a [=permission revocation algorithm=].
787799

@@ -2105,6 +2117,11 @@ for instance, "gyroscope" or "accelerometer". [=sensor fusion|Fusion sensors=] m
21052117
[=request permission to use|request permission to access=] each of the sensors that are
21062118
used as a source of fusion.
21072119

2120+
Note: see the note in [[#permissions]]. In specific cases such as
2121+
[[AMBIENT-LIGHT]], an [=extension specification=] may choose to rely on
2122+
[=powerful feature/names=] defined in another specification rather than
2123+
specifying their own [=sensor permission names=].
2124+
21082125
Even though it might be difficult to reconstruct [=low-level=] [=sensor readings=] from
21092126
fused data, some of the original information might be inferred. For example, it is easy to
21102127
deduce user's orientation in space if absolute or geomagnetic orientation sensors are used,

0 commit comments

Comments
 (0)