From 75ef57e52d2734b98055ef9489bceb8d36867837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Fri, 8 Mar 2024 12:24:55 +1100 Subject: [PATCH] Editorial: define permission states consistently (#400) --- index.html | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 9813d7b..0f39d41 100644 --- a/index.html +++ b/index.html @@ -218,16 +218,17 @@

- Prompt: + "prompt":
The user has not given [=express permission=] to use the feature (i.e., it's the same - as [=permission/denied=]). It also means that if a caller attempts to use the feature, - the [=user agent=] will either be prompting the user for permission or access to the - feature will be [=permission/denied=]. + as [=permission/"denied"=]). It also means that if a caller attempts to use the + feature, the [=user agent=] will either be prompting the user for permission or access + to the feature will be [=permission/"denied"=].
- Granted: + "granted":
The user, or the user agent on the user's behalf, has given [=express permission=] to @@ -235,7 +236,7 @@

the [=user agent=] asking the user's permission.

- Denied: + "denied":
The user, or the user agent on the user's behalf, has denied access to this [=powerful @@ -259,7 +260,7 @@

Every [=permission=] has a lifetime, - which is the duration for which a particular permission remains [=permission/granted=] + which is the duration for which a particular permission remains [=permission/"granted"=] before it reverts back to its [=permission/default state=]. A [=permission/lifetime=] could be until a particular [=ECMAScript/Realm=] is destroyed, until a particular [=top-level browsing context=] is destroyed, a particular amount of time, or be infinite. @@ -269,9 +270,9 @@

Every permission has a default state (usually - [=permission/prompt=]), which is the [=permission/state=] that the permission is in when - the user has not yet given [=express permission=] to use the [=feature=] or it has been - reset because its [=permission/lifetime=] has expired. + [=permission/"prompt"=]), which is the [=permission/state=] that the permission is in + when the user has not yet given [=express permission=] to use the [=feature=] or it has + been reset because its [=permission/lifetime=] has expired.

@@ -387,8 +388,9 @@

[=document=] is [=allowed to use=] a given feature. That is, a powerful feature can only request [=express permission=] from a user if the [=document=] has permission delegated to it via the corresponding [=policy-controlled feature=] (see example below). Subsequent - access to the feature is determined by the user having [=permission/granted=] permission, - or by satisfying some criteria that is equivalent to a permission [=permission/grant=]. + access to the feature is determined by the user having [=permission/"granted"=] + permission, or by satisfying some criteria that is equivalent to a permission + [=permission/grant=].