@@ -80,7 +80,7 @@ urlPrefix: https://w3ctag.github.io/security-questionnaire/; spec: SECURITY-PRIV
80
80
text: same-origin policy violations; url: sop-violations
81
81
urlPrefix: https://www.w3.org/TR/permissions/; spec: PERMISSIONS
82
82
type: dfn
83
- text: permission name; url: enumdef-permissionname
83
+ text: name; url: dfn-name
84
84
text: permission state
85
85
urlPrefix: https://w3c.github.io/webdriver/; spec: WebDriver
86
86
type: dfn
@@ -791,7 +791,7 @@ The user agent must verify that all [=mandatory conditions=] are satisfied to en
791
791
792
792
The <dfn>mandatory conditions</dfn> are the following:
793
793
- The given document is a [=responsible document=] of a [=secure context=] .
794
- - For each [=permission name=] from the [=sensor type=] 's associated
794
+ - For each [=name=] from the [=sensor type=] 's associated
795
795
[=sensor permission names=] [=ordered set|set=] , the corresponding permission's
796
796
[=permission state|state=] is "granted".
797
797
- [=document visibility state|Visibility state=] of the document is "visible".
@@ -818,17 +818,17 @@ A [=sensor type=] has a [=ordered set|set=] of <dfn export>associated sensors</d
818
818
A [=sensor type=] may have a [=default sensor=] .
819
819
820
820
A [=sensor type=] has a [=set/is empty|nonempty=] [=ordered set|set=] of associated
821
- [=permission names=] referred to as <dfn export>sensor permission names</dfn> .
821
+ [=names=] referred to as <dfn export>sensor permission names</dfn> .
822
822
823
- Note: multiple [=sensor types=] may share the same [=permission name=] .
823
+ Note: multiple [=sensor types=] may share the same [=name=] .
824
824
825
825
A [=sensor type=] has a [=permission revocation algorithm=] .
826
826
827
827
<div algorithm>
828
828
829
829
To invoke the <dfn local-lt="permission revocation algorithm" export>
830
830
generic sensor permission revocation algorithm</dfn>
831
- with {{PermissionName}} |permission_name|, run the following steps:
831
+ with [=name=] |permission_name|, run the following steps:
832
832
833
833
1. For each |sensor_type| whose [=sensor permission names|permission names=] [=set/contains=] |permission_name|:
834
834
1. [=set/For each=] |sensor| in |sensor_type|'s [=ordered set|set=] of [=associated sensors=] ,
@@ -2067,8 +2067,8 @@ each [=sensor type=] in [=extension specifications=]:
2067
2067
[=get value from latest reading=] with <strong> this</strong> and
2068
2068
[=attribute=] [=identifier=] as arguments.
2069
2069
2070
- - A [=permission name=] , if the [=sensor type=] is not representing
2071
- [=sensor fusion=] (otherwise, [=permission names=]
2070
+ - A [=name=] , if the [=sensor type=] is not representing
2071
+ [=sensor fusion=] (otherwise, [=names=]
2072
2072
associated with the fusion source [=sensor types=] must be used).
2073
2073
2074
2074
An [=extension specification=] may specify the following definitions
@@ -2095,8 +2095,8 @@ In order to enable user-agent automation and application testing,
2095
2095
<h3 id="permission-api">Extending the Permission API</h3>
2096
2096
2097
2097
An implementation of the {{Sensor}} interface for each [=sensor type=] must protect its
2098
- [=sensor reading|reading=] by associated [=permission name=] or {{PermissionDescriptor}} .
2099
- A [=Low-level=] {{Sensor|sensor}} may use its interface name as a [=permission name=] ,
2098
+ [=sensor reading|reading=] by associated [=name=] or {{PermissionDescriptor}} .
2099
+ A [=Low-level=] {{Sensor|sensor}} may use its interface name as a [=name=] ,
2100
2100
for instance, "gyroscope" or "accelerometer". [=sensor fusion|Fusion sensors=] must
2101
2101
[=request permission to use|request permission to access=] each of the sensors that are
2102
2102
used as a source of fusion.
0 commit comments