diff --git a/index.html b/index.html index 95488ab..75c6d5f 100644 --- a/index.html +++ b/index.html @@ -1305,28 +1305,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`.