Skip to content

Commit bf5bdf1

Browse files
committed
Integrate Permissions API changes
Remove references to enum PermissionName and refer to powerful feature 'name' dfn instead. Helps with w3c/permissions#263
1 parent de5164e commit bf5bdf1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ urlPrefix: https://w3ctag.github.io/security-questionnaire/; spec: SECURITY-PRIV
8080
text: same-origin policy violations; url: sop-violations
8181
urlPrefix: https://www.w3.org/TR/permissions/; spec: PERMISSIONS
8282
type: dfn
83-
text: permission name; url: enumdef-permissionname
83+
text: name; url: dfn-name
8484
text: permission state
8585
urlPrefix: https://w3c.github.io/webdriver/; spec: WebDriver
8686
type: dfn
@@ -791,7 +791,7 @@ The user agent must verify that all [=mandatory conditions=] are satisfied to en
791791

792792
The <dfn>mandatory conditions</dfn> are the following:
793793
- 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
795795
[=sensor permission names=] [=ordered set|set=], the corresponding permission's
796796
[=permission state|state=] is "granted".
797797
- [=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
818818
A [=sensor type=] may have a [=default sensor=].
819819

820820
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>.
822822

823-
Note: multiple [=sensor types=] may share the same [=permission name=].
823+
Note: multiple [=sensor types=] may share the same [=name=].
824824

825825
A [=sensor type=] has a [=permission revocation algorithm=].
826826

827827
<div algorithm>
828828

829829
To invoke the <dfn local-lt="permission revocation algorithm" export>
830830
generic sensor permission revocation algorithm</dfn>
831-
with {{PermissionName}} |permission_name|, run the following steps:
831+
with [=name=] |permission_name|, run the following steps:
832832

833833
1. For each |sensor_type| whose [=sensor permission names|permission names=] [=set/contains=] |permission_name|:
834834
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=]:
20672067
[=get value from latest reading=] with <strong>this</strong> and
20682068
[=attribute=] [=identifier=] as arguments.
20692069

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=]
20722072
associated with the fusion source [=sensor types=] must be used).
20732073

20742074
An [=extension specification=] may specify the following definitions
@@ -2095,8 +2095,8 @@ In order to enable user-agent automation and application testing,
20952095
<h3 id="permission-api">Extending the Permission API</h3>
20962096

20972097
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=],
21002100
for instance, "gyroscope" or "accelerometer". [=sensor fusion|Fusion sensors=] must
21012101
[=request permission to use|request permission to access=] each of the sensors that are
21022102
used as a source of fusion.

0 commit comments

Comments
 (0)