puppeteer/new-docs/puppeteer.protocol.browser.permissiondescriptor.md

25 lines
1.6 KiB
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Browser](./puppeteer.protocol.browser.md) &gt; [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. |