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 @@

The remote end steps are:

    -
  1. Let |parameters| be the |parameters| argument, converted to an IDL value of +
  2. Let |parametersDict| be the |parameters| argument, [=converted to an IDL value=] of type {{PermissionSetParameters}}. If this throws an exception, return an [=invalid argument=] [=error=].
  3. -
  4. Let |rootDesc| be |parameters|.{{PermissionSetParameters/descriptor}}. -
  5. -
  6. If |parameters|.{{PermissionSetParameters/state}} is an inappropriate permission - state for any implementation-defined reason, return a [=invalid argument=] - [=error=]. +
  7. 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.

  8. +
  9. Let |rootDesc| be |parameters|.{{PermissionSetParameters/descriptor}}. +
  10. 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=].
  11. [=Set a permission=] with |typedDescriptor| and - |parameters|.{{PermissionSetParameters/state}}. + |parametersDict|.{{PermissionSetParameters/state}}.
  12. Return success with data `null`.