Skip to content

Commit

Permalink
Merge branch 'w3c:main' into orkon/user-context-id
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN authored Feb 29, 2024
2 parents 4934712 + 12a5113 commit 2f1c45e
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 @@ -1305,28 +1305,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 2f1c45e

Please sign in to comment.