diff --git a/index.html b/index.html index bd3354d..1e6df43 100644 --- a/index.html +++ b/index.html @@ -1213,14 +1213,14 @@
For the purposes of user-agent automation and application testing, this document defines - the following [=extension commands=] for the [[WebDriver]] specification. It is OPTIONAL - for a user agent to support [=extension commands=] commands. + extensions to the [[WebDriver]] and [[WebDriver-BiDi]] specifications. + It is OPTIONAL for a user agent to support them.
dictionary PermissionSetParameters { @@ -1228,103 +1228,243 @@-required PermissionState state; };
- HTTP Method - | -- URI Template - | -
---|---|
- POST - | -- /session/{session id}/permissions - | -
- The Set Permission - [=extension command=] simulates user modification of a {{PermissionDescriptor}}'s - [=permission state=]. -
-- The [=remote end steps=] are: + To set a permission given a {{PermissionDescriptor}} |descriptor:PermissionDescriptor|, and a {{PermissionState}} |state:PermissionState|:
|rootDesc|.{{PermissionDescriptor/name}}
's [=powerful
- feature/permission descriptor type=]. If this throws an exception, return a [=invalid
- argument=] [=error=].
- - For example, [=user agents=] that define the "midi" [=powerful feature=] as "always - on" may choose to reject a command to set the [=permission state=] to - {{PermissionState/"denied"}} at this step. -
-+ This document defines the following extension commands for the [[WebDriver]] specification. +
++ HTTP Method + | ++ [=extension command URI template|URI Template=] + | +
---|---|
+ POST + | ++ /session/{session id}/permissions + | +
- To [=extension commands/set permission=] for `{name: "midi", sysex: true}` of the - [=current settings object=] of the [=session=] with ID 23 to "`granted`", the local end - would POST to `/session/23/permissions` with the body: + The Set Permission + extension command simulates user modification of a {{PermissionDescriptor}}'s + [=permission state=].
-- { - "descriptor": { - "name": "midi", - "sysex": true - }, - "state": "granted" - } -- +
+ The remote end steps are: +
++ 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. +
++ This document defines the following [=extension modules=] for the [[WebDriver-BiDi]] specification. +
++ The permissions module contains commands for + managing the remote end browser permissions. +
++ [=remote end definition=] +
++ PermissionsCommand = ( + permissions.setPermission + ) ++
+ permissions.PermissionDescriptor = { + name: text, + } ++
+ The `permissions.PermissionDescriptor` type represents a {{PermissionDescriptor}}. +
++ permissions.PermissionState = "granted" / "denied" / "prompt" ++
+ The `permissions.PermissionState` type represents a {{PermissionState}}. +
++ The Set Permission + [=command=] simulates user modification of a {{PermissionDescriptor}}'s + [=permission state=]. +
++ permissions.setPermission = ( + method: "permissions.setPermission", + params: permissions.SetPermissionParameters + ) + + permissions.SetPermissionParameters = { + descriptor: permissions.PermissionDescriptor, + state: permissions.PermissionState, + } ++
+ EmptyResult ++
+ The [=remote end steps=] with |session| and |command parameters| are: +
+