Skip to content

Commit 429fc2c

Browse files
authored
Merge pull request #418 from rakuco/permissions-integration
Adjust references to terms defined in the Permissions spec.
2 parents a3fa85e + 90e6a78 commit 429fc2c

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

index.bs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ urlPrefix: https://www.w3.org/TR/page-visibility-2/; spec: PAGE-VISIBILITY
7979
urlPrefix: https://w3ctag.github.io/security-questionnaire/; spec: SECURITY-PRIVACY-QUESTIONNAIRE
8080
type: dfn
8181
text: same-origin policy violations; url: sop-violations
82-
urlPrefix: https://www.w3.org/TR/permissions/; spec: PERMISSIONS
83-
type: dfn
84-
text: name; url: dfn-name
85-
text: permission state
8682
urlPrefix: https://w3c.github.io/webdriver/; spec: WebDriver
8783
type: dfn
8884
text: current browsing context; url: dfn-current-browsing-context
@@ -792,7 +788,7 @@ The user agent must verify that all [=mandatory conditions=] are satisfied to en
792788

793789
The <dfn>mandatory conditions</dfn> are the following:
794790
- The given document is a [=responsible document=] of a [=secure context=].
795-
- For each [=name=] from the [=sensor type=]'s associated
791+
- For each [=powerful feature/name=] from the [=sensor type=]'s associated
796792
[=sensor permission names=] [=ordered set|set=], the corresponding permission's
797793
[=permission state|state=] is "granted".
798794
- [=document visibility state|Visibility state=] of the document is "visible".
@@ -819,17 +815,17 @@ A [=sensor type=] has a [=ordered set|set=] of <dfn export>associated sensors</d
819815
A [=sensor type=] may have a [=default sensor=].
820816

821817
A [=sensor type=] has a [=set/is empty|nonempty=] [=ordered set|set=] of associated
822-
[=names=] referred to as <dfn export>sensor permission names</dfn>.
818+
[=powerful feature/names=] referred to as <dfn export>sensor permission names</dfn>.
823819

824-
Note: multiple [=sensor types=] may share the same [=name=].
820+
Note: multiple [=sensor types=] may share the same [=powerful feature/name=].
825821

826822
A [=sensor type=] has a [=permission revocation algorithm=].
827823

828824
<div algorithm>
829825

830826
To invoke the <dfn local-lt="permission revocation algorithm" export>
831827
generic sensor permission revocation algorithm</dfn>
832-
with [=name=] |permission_name|, run the following steps:
828+
with [=powerful feature/name=] |permission_name|, run the following steps:
833829

834830
1. For each |sensor_type| whose [=sensor permission names|permission names=] [=set/contains=] |permission_name|:
835831
1. [=set/For each=] |sensor| in |sensor_type|'s [=ordered set|set=] of [=associated sensors=],
@@ -2068,8 +2064,8 @@ each [=sensor type=] in [=extension specifications=]:
20682064
[=get value from latest reading=] with <strong>this</strong> and
20692065
[=attribute=] [=identifier=] as arguments.
20702066

2071-
- A [=name=], if the [=sensor type=] is not representing
2072-
[=sensor fusion=] (otherwise, [=names=]
2067+
- A [=powerful feature/name=], if the [=sensor type=] is not representing
2068+
[=sensor fusion=] (otherwise, [=powerful feature/names=]
20732069
associated with the fusion source [=sensor types=] must be used).
20742070

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

20982094
An implementation of the {{Sensor}} interface for each [=sensor type=] must protect its
2099-
[=sensor reading|reading=] by associated [=name=] or {{PermissionDescriptor}}.
2100-
A [=Low-level=] {{Sensor|sensor}} may use its interface name as a [=name=],
2095+
[=sensor reading|reading=] by associated [=powerful feature/name=] or {{PermissionDescriptor}}.
2096+
A [=Low-level=] {{Sensor|sensor}} may use its interface name as a [=powerful feature/name=],
21012097
for instance, "gyroscope" or "accelerometer". [=sensor fusion|Fusion sensors=] must
21022098
[=request permission to use|request permission to access=] each of the sensors that are
21032099
used as a source of fusion.

0 commit comments

Comments
 (0)