Skip to content

Commit

Permalink
Editorial: Disambiguate parameters in Set Permission steps (#441)
Browse files Browse the repository at this point in the history
* Disambiguate `parameters` in Set Permission steps

* Update index.html

---------

Co-authored-by: Mike Taylor <[email protected]>
  • Loading branch information
saschanaz and miketaylr authored Feb 12, 2024
1 parent 8972985 commit 12a5113
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1304,28 +1304,28 @@ <h4 id="webdriver-command-set-permission">
The <a>remote end steps</a> are:
</p>
<ol>
<li>Let |parameters| be the |parameters| argument, <a>converted to an IDL value</a> of
<li>Let |parametersDict| be the |parameters| argument, [=converted to an IDL value=] of
type {{PermissionSetParameters}}. If this throws an exception, return an [=invalid
argument=] [=error=].
</li>
<li>Let |rootDesc| be |parameters|.{{PermissionSetParameters/descriptor}}.
</li>
<li>If |parameters|.{{PermissionSetParameters/state}} is an inappropriate <a>permission
state</a> for any implementation-defined reason, return a [=invalid argument=]
[=error=].
<li>If |parametersDict|.{{PermissionSetParameters/state}} is an inappropriate
[=permission state=] for any implementation-defined reason, return an
[=invalid argument=] [=error=].
<p class="note">
For example, <a>user agents</a> that define the "midi" <a>powerful feature</a> as
"always on" can choose to reject a command to set the [=permission state=] to
{{PermissionState/"denied"}} at this step.
</p>
</li>
<li>Let |rootDesc| be |parameters|.{{PermissionSetParameters/descriptor}}.
</li>
<li>Let |typedDescriptor| be the object |rootDesc| refers to, <a>converted to an IDL
value</a> of |rootDesc|.{{PermissionDescriptor/name}}'s [=powerful feature/permission
descriptor type=]. If this throws an exception, return a [=invalid argument=]
[=error=].
</li>
<li>[=Set a permission=] with |typedDescriptor| and
|parameters|.{{PermissionSetParameters/state}}.
|parametersDict|.{{PermissionSetParameters/state}}.
</li>
<li>Return <a>success</a> with data `null`.
</li>
Expand Down

0 comments on commit 12a5113

Please sign in to comment.