diff --git a/index.html b/index.html index 820380d..d3d9c38 100644 --- a/index.html +++ b/index.html @@ -183,7 +183,7 @@ .mdn .samsunginternet_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/samsung-internet/samsung-internet.svg)} .mdn .webview_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/android-webview/android-webview.png)} - +
WebIDLdictionary PermissionSetParameters
{
- required PermissionDescriptor
descriptor
;
+ WebIDLdictionary PermissionSetParameters
{
+ required object descriptor
;
required PermissionState
state
;
};
- To set a permission given a PermissionDescriptor
+ To set a permission given a PermissionDescriptor
descriptor, a PermissionState
state, and an
optional origin:
@@ -2001,7 +2001,7 @@ Permissions
The Set Permission
- extension command simulates user modification of a PermissionDescriptor
's
+ extension command simulates user modification of a PermissionDescriptor
's
permission state.
@@ -2012,19 +2012,18 @@
Permissions
PermissionSetParameters
. If this throws an exception, return an invalid argument error.
If parametersDict.state
is an inappropriate
- permission state for any implementation-defined reason, return an
- invalid argument error.
+ permission state for any implementation-defined reason, return an invalid argument error.
Note
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
"denied
" at this step.
- Let rootDesc be parameters.descriptor
.
+ Let rootDesc be parametersDict.descriptor
.
- Let typedDescriptor be the object rootDesc refers to, converted to an IDL
- value of rootDesc.name
's permission descriptor type. If this throws an exception, return a invalid argument
- error.
+ Let typedDescriptor be the object rootDesc refers to, converted to an IDL value of permission descriptor type matching the result of
+ Get(rootDesc, "name
"). If this throws an
+ exception, return a invalid argument error.
Set a permission with typedDescriptor and
parametersDict.state
.
@@ -2032,12 +2031,12 @@ Permissions
Return success with data null
.
-