25 lines
1.6 KiB
Markdown
25 lines
1.6 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Browser](./puppeteer.protocol.browser.md) > [PermissionDescriptor](./puppeteer.protocol.browser.permissiondescriptor.md)
|
||
|
|
||
|
## Protocol.Browser.PermissionDescriptor interface
|
||
|
|
||
|
Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/\#dictdef-permissiondescriptor.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export interface PermissionDescriptor
|
||
|
```
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
| Property | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| [allowWithoutSanitization](./puppeteer.protocol.browser.permissiondescriptor.allowwithoutsanitization.md) | boolean | For "clipboard" permission, may specify allowWithoutSanitization. |
|
||
|
| [name](./puppeteer.protocol.browser.permissiondescriptor.name.md) | string | Name of permission. See https://cs.chromium.org/chromium/src/third\_party/blink/renderer/modules/permissions/permission\_descriptor.idl for valid permission names. |
|
||
|
| [sysex](./puppeteer.protocol.browser.permissiondescriptor.sysex.md) | boolean | For "midi" permission, may also specify sysex control. |
|
||
|
| [type](./puppeteer.protocol.browser.permissiondescriptor.type.md) | string | For "wake-lock" permission, must specify type as either "screen" or "system". |
|
||
|
| [userVisibleOnly](./puppeteer.protocol.browser.permissiondescriptor.uservisibleonly.md) | boolean | For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type. |
|
||
|
|