From 12a5113755cd93bfe0a2e09c1a0209303d61a39a Mon Sep 17 00:00:00 2001
From: Kagami Sascha Rosylight
Date: Mon, 12 Feb 2024 16:49:27 +0100
Subject: [PATCH] Editorial: Disambiguate `parameters` in Set Permission steps
(#441)
* Disambiguate `parameters` in Set Permission steps
* Update index.html
---------
Co-authored-by: Mike Taylor
---
index.html | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/index.html b/index.html
index c521149..4301277 100644
--- a/index.html
+++ b/index.html
@@ -1304,28 +1304,28 @@
- - Let |parameters| be the |parameters| argument, converted to an IDL value of
+
- Let |parametersDict| be the |parameters| argument, [=converted to an IDL value=] of
type {{PermissionSetParameters}}. If this throws an exception, return an [=invalid
argument=] [=error=].
- - Let |rootDesc| be |parameters|.{{PermissionSetParameters/descriptor}}.
-
- - If |parameters|.{{PermissionSetParameters/state}} is an inappropriate permission
- state for any implementation-defined reason, return a [=invalid argument=]
- [=error=].
+
- If |parametersDict|.{{PermissionSetParameters/state}} is an inappropriate
+ [=permission state=] for any implementation-defined reason, return an
+ [=invalid argument=] [=error=].
For example, user agents that define the "midi" powerful feature as
"always on" can choose to reject a command to set the [=permission state=] to
{{PermissionState/"denied"}} at this step.
+ - Let |rootDesc| be |parameters|.{{PermissionSetParameters/descriptor}}.
+
- Let |typedDescriptor| be the object |rootDesc| refers to, converted to an IDL
value of |rootDesc|.{{PermissionDescriptor/name}}'s [=powerful feature/permission
descriptor type=]. If this throws an exception, return a [=invalid argument=]
[=error=].
- [=Set a permission=] with |typedDescriptor| and
- |parameters|.{{PermissionSetParameters/state}}.
+ |parametersDict|.{{PermissionSetParameters/state}}.
- Return success with data `null`.