feat(chromium) roll Chromium to r809590 (#6458)
This corresponds to Chromium 87.0.4272.0 This roll includes: - Reland "idle-detection: Implement requestPermission() method" (crrev.com/c/2417779)
This commit is contained in:
parent
4cdbebe1ac
commit
49f25e2412
@ -7,7 +7,7 @@
|
|||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
overridePermissions(origin: string, permissions: Protocol.Browser.PermissionType[]): Promise<void>;
|
overridePermissions(origin: string, permissions: string[]): Promise<void>;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
@ -15,7 +15,7 @@ overridePermissions(origin: string, permissions: Protocol.Browser.PermissionType
|
|||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| origin | string | The origin to grant permissions to, e.g. "https://example.com". |
|
| origin | string | The origin to grant permissions to, e.g. "https://example.com". |
|
||||||
| permissions | [Protocol.Browser.PermissionType](./puppeteer.protocol.browser.permissiontype.md)<!-- -->\[\] | An array of permissions to grant. All permissions that are not listed here will be automatically denied. |
|
| permissions | string\[\] | An array of permissions to grant. All permissions that are not listed here will be automatically denied. |
|
||||||
|
|
||||||
<b>Returns:</b>
|
<b>Returns:</b>
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ export namespace Accessibility
|
|||||||
| [GetFullAXTreeResponse](./puppeteer.protocol.accessibility.getfullaxtreeresponse.md) | |
|
| [GetFullAXTreeResponse](./puppeteer.protocol.accessibility.getfullaxtreeresponse.md) | |
|
||||||
| [GetPartialAXTreeRequest](./puppeteer.protocol.accessibility.getpartialaxtreerequest.md) | |
|
| [GetPartialAXTreeRequest](./puppeteer.protocol.accessibility.getpartialaxtreerequest.md) | |
|
||||||
| [GetPartialAXTreeResponse](./puppeteer.protocol.accessibility.getpartialaxtreeresponse.md) | |
|
| [GetPartialAXTreeResponse](./puppeteer.protocol.accessibility.getpartialaxtreeresponse.md) | |
|
||||||
|
| [QueryAXTreeRequest](./puppeteer.protocol.accessibility.queryaxtreerequest.md) | |
|
||||||
|
| [QueryAXTreeResponse](./puppeteer.protocol.accessibility.queryaxtreeresponse.md) | |
|
||||||
|
|
||||||
## Type Aliases
|
## Type Aliases
|
||||||
|
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeRequest](./puppeteer.protocol.accessibility.queryaxtreerequest.md) > [accessibleName](./puppeteer.protocol.accessibility.queryaxtreerequest.accessiblename.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeRequest.accessibleName property
|
||||||
|
|
||||||
|
Find nodes with this computed name.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
accessibleName?: string;
|
||||||
|
```
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeRequest](./puppeteer.protocol.accessibility.queryaxtreerequest.md) > [backendNodeId](./puppeteer.protocol.accessibility.queryaxtreerequest.backendnodeid.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeRequest.backendNodeId property
|
||||||
|
|
||||||
|
Identifier of the backend node for the root to query.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
backendNodeId?: DOM.BackendNodeId;
|
||||||
|
```
|
@ -0,0 +1,22 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeRequest](./puppeteer.protocol.accessibility.queryaxtreerequest.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeRequest interface
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export interface QueryAXTreeRequest
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [accessibleName](./puppeteer.protocol.accessibility.queryaxtreerequest.accessiblename.md) | string | Find nodes with this computed name. |
|
||||||
|
| [backendNodeId](./puppeteer.protocol.accessibility.queryaxtreerequest.backendnodeid.md) | [DOM.BackendNodeId](./puppeteer.protocol.dom.backendnodeid.md) | Identifier of the backend node for the root to query. |
|
||||||
|
| [nodeId](./puppeteer.protocol.accessibility.queryaxtreerequest.nodeid.md) | [DOM.NodeId](./puppeteer.protocol.dom.nodeid.md) | Identifier of the node for the root to query. |
|
||||||
|
| [objectId](./puppeteer.protocol.accessibility.queryaxtreerequest.objectid.md) | [Runtime.RemoteObjectId](./puppeteer.protocol.runtime.remoteobjectid.md) | JavaScript object id of the node wrapper for the root to query. |
|
||||||
|
| [role](./puppeteer.protocol.accessibility.queryaxtreerequest.role.md) | string | Find nodes with this computed role. |
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeRequest](./puppeteer.protocol.accessibility.queryaxtreerequest.md) > [nodeId](./puppeteer.protocol.accessibility.queryaxtreerequest.nodeid.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeRequest.nodeId property
|
||||||
|
|
||||||
|
Identifier of the node for the root to query.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
nodeId?: DOM.NodeId;
|
||||||
|
```
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeRequest](./puppeteer.protocol.accessibility.queryaxtreerequest.md) > [objectId](./puppeteer.protocol.accessibility.queryaxtreerequest.objectid.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeRequest.objectId property
|
||||||
|
|
||||||
|
JavaScript object id of the node wrapper for the root to query.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
objectId?: Runtime.RemoteObjectId;
|
||||||
|
```
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeRequest](./puppeteer.protocol.accessibility.queryaxtreerequest.md) > [role](./puppeteer.protocol.accessibility.queryaxtreerequest.role.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeRequest.role property
|
||||||
|
|
||||||
|
Find nodes with this computed role.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
role?: string;
|
||||||
|
```
|
@ -0,0 +1,18 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeResponse](./puppeteer.protocol.accessibility.queryaxtreeresponse.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeResponse interface
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export interface QueryAXTreeResponse
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [nodes](./puppeteer.protocol.accessibility.queryaxtreeresponse.nodes.md) | [AXNode](./puppeteer.protocol.accessibility.axnode.md)<!-- -->\[\] | A list of <code>Accessibility.AXNode</code> matching the specified attributes, including nodes that are ignored for accessibility. |
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Accessibility](./puppeteer.protocol.accessibility.md) > [QueryAXTreeResponse](./puppeteer.protocol.accessibility.queryaxtreeresponse.md) > [nodes](./puppeteer.protocol.accessibility.queryaxtreeresponse.nodes.md)
|
||||||
|
|
||||||
|
## Protocol.Accessibility.QueryAXTreeResponse.nodes property
|
||||||
|
|
||||||
|
A list of `Accessibility.AXNode` matching the specified attributes, including nodes that are ignored for accessibility.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
nodes: AXNode[];
|
||||||
|
```
|
@ -19,6 +19,5 @@ export interface PermissionDescriptor
|
|||||||
| [allowWithoutSanitization](./puppeteer.protocol.browser.permissiondescriptor.allowwithoutsanitization.md) | boolean | For "clipboard" permission, may specify allowWithoutSanitization. |
|
| [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. |
|
| [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. |
|
| [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. |
|
| [userVisibleOnly](./puppeteer.protocol.browser.permissiondescriptor.uservisibleonly.md) | boolean | For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type. |
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
<!-- 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) > [type](./puppeteer.protocol.browser.permissiondescriptor.type.md)
|
|
||||||
|
|
||||||
## Protocol.Browser.PermissionDescriptor.type property
|
|
||||||
|
|
||||||
For "wake-lock" permission, must specify type as either "screen" or "system".
|
|
||||||
|
|
||||||
<b>Signature:</b>
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
type?: string;
|
|
||||||
```
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [CSS](./puppeteer.protocol.css.md) > [CSSStyleSheetHeader](./puppeteer.protocol.css.cssstylesheetheader.md) > [isConstructed](./puppeteer.protocol.css.cssstylesheetheader.isconstructed.md)
|
||||||
|
|
||||||
|
## Protocol.CSS.CSSStyleSheetHeader.isConstructed property
|
||||||
|
|
||||||
|
Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()).
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
isConstructed: boolean;
|
||||||
|
```
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
## Protocol.CSS.CSSStyleSheetHeader.isMutable property
|
## Protocol.CSS.CSSStyleSheetHeader.isMutable property
|
||||||
|
|
||||||
Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets are never mutable. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
|
Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
|
||||||
|
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
@ -21,8 +21,9 @@ export interface CSSStyleSheetHeader
|
|||||||
| [endLine](./puppeteer.protocol.css.cssstylesheetheader.endline.md) | number | Line offset of the end of the stylesheet within the resource (zero based). |
|
| [endLine](./puppeteer.protocol.css.cssstylesheetheader.endline.md) | number | Line offset of the end of the stylesheet within the resource (zero based). |
|
||||||
| [frameId](./puppeteer.protocol.css.cssstylesheetheader.frameid.md) | [Page.FrameId](./puppeteer.protocol.page.frameid.md) | Owner frame identifier. |
|
| [frameId](./puppeteer.protocol.css.cssstylesheetheader.frameid.md) | [Page.FrameId](./puppeteer.protocol.page.frameid.md) | Owner frame identifier. |
|
||||||
| [hasSourceURL](./puppeteer.protocol.css.cssstylesheetheader.hassourceurl.md) | boolean | Whether the sourceURL field value comes from the sourceURL comment. |
|
| [hasSourceURL](./puppeteer.protocol.css.cssstylesheetheader.hassourceurl.md) | boolean | Whether the sourceURL field value comes from the sourceURL comment. |
|
||||||
|
| [isConstructed](./puppeteer.protocol.css.cssstylesheetheader.isconstructed.md) | boolean | Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()). |
|
||||||
| [isInline](./puppeteer.protocol.css.cssstylesheetheader.isinline.md) | boolean | Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags. |
|
| [isInline](./puppeteer.protocol.css.cssstylesheetheader.isinline.md) | boolean | Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags. |
|
||||||
| [isMutable](./puppeteer.protocol.css.cssstylesheetheader.ismutable.md) | boolean | Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets are never mutable. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. |
|
| [isMutable](./puppeteer.protocol.css.cssstylesheetheader.ismutable.md) | boolean | Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. |
|
||||||
| [length](./puppeteer.protocol.css.cssstylesheetheader.length.md) | number | Size of the content (in characters). |
|
| [length](./puppeteer.protocol.css.cssstylesheetheader.length.md) | number | Size of the content (in characters). |
|
||||||
| [origin](./puppeteer.protocol.css.cssstylesheetheader.origin.md) | [StyleSheetOrigin](./puppeteer.protocol.css.stylesheetorigin.md) | Stylesheet origin. |
|
| [origin](./puppeteer.protocol.css.cssstylesheetheader.origin.md) | [StyleSheetOrigin](./puppeteer.protocol.css.stylesheetorigin.md) | Stylesheet origin. |
|
||||||
| [ownerNode](./puppeteer.protocol.css.cssstylesheetheader.ownernode.md) | [DOM.BackendNodeId](./puppeteer.protocol.dom.backendnodeid.md) | The backend id for the owner node of the stylesheet. |
|
| [ownerNode](./puppeteer.protocol.css.cssstylesheetheader.ownernode.md) | [DOM.BackendNodeId](./puppeteer.protocol.dom.backendnodeid.md) | The backend id for the owner node of the stylesheet. |
|
||||||
|
@ -14,5 +14,8 @@ export interface CrossOriginEmbedderPolicyStatus
|
|||||||
|
|
||||||
| Property | Type | Description |
|
| Property | Type | Description |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
|
| [reportingEndpoint](./puppeteer.protocol.network.crossoriginembedderpolicystatus.reportingendpoint.md) | string | |
|
||||||
|
| [reportOnlyReportingEndpoint](./puppeteer.protocol.network.crossoriginembedderpolicystatus.reportonlyreportingendpoint.md) | string | |
|
||||||
|
| [reportOnlyValue](./puppeteer.protocol.network.crossoriginembedderpolicystatus.reportonlyvalue.md) | [CrossOriginEmbedderPolicyValue](./puppeteer.protocol.network.crossoriginembedderpolicyvalue.md) | |
|
||||||
| [value](./puppeteer.protocol.network.crossoriginembedderpolicystatus.value.md) | [CrossOriginEmbedderPolicyValue](./puppeteer.protocol.network.crossoriginembedderpolicyvalue.md) | |
|
| [value](./puppeteer.protocol.network.crossoriginembedderpolicystatus.value.md) | [CrossOriginEmbedderPolicyValue](./puppeteer.protocol.network.crossoriginembedderpolicyvalue.md) | |
|
||||||
|
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [CrossOriginEmbedderPolicyStatus](./puppeteer.protocol.network.crossoriginembedderpolicystatus.md) > [reportingEndpoint](./puppeteer.protocol.network.crossoriginembedderpolicystatus.reportingendpoint.md)
|
||||||
|
|
||||||
|
## Protocol.Network.CrossOriginEmbedderPolicyStatus.reportingEndpoint property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
reportingEndpoint?: string;
|
||||||
|
```
|
@ -0,0 +1,11 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [CrossOriginEmbedderPolicyStatus](./puppeteer.protocol.network.crossoriginembedderpolicystatus.md) > [reportOnlyReportingEndpoint](./puppeteer.protocol.network.crossoriginembedderpolicystatus.reportonlyreportingendpoint.md)
|
||||||
|
|
||||||
|
## Protocol.Network.CrossOriginEmbedderPolicyStatus.reportOnlyReportingEndpoint property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
reportOnlyReportingEndpoint?: string;
|
||||||
|
```
|
@ -0,0 +1,11 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [CrossOriginEmbedderPolicyStatus](./puppeteer.protocol.network.crossoriginembedderpolicystatus.md) > [reportOnlyValue](./puppeteer.protocol.network.crossoriginembedderpolicystatus.reportonlyvalue.md)
|
||||||
|
|
||||||
|
## Protocol.Network.CrossOriginEmbedderPolicyStatus.reportOnlyValue property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
reportOnlyValue: CrossOriginEmbedderPolicyValue;
|
||||||
|
```
|
@ -14,5 +14,8 @@ export interface CrossOriginOpenerPolicyStatus
|
|||||||
|
|
||||||
| Property | Type | Description |
|
| Property | Type | Description |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
|
| [reportingEndpoint](./puppeteer.protocol.network.crossoriginopenerpolicystatus.reportingendpoint.md) | string | |
|
||||||
|
| [reportOnlyReportingEndpoint](./puppeteer.protocol.network.crossoriginopenerpolicystatus.reportonlyreportingendpoint.md) | string | |
|
||||||
|
| [reportOnlyValue](./puppeteer.protocol.network.crossoriginopenerpolicystatus.reportonlyvalue.md) | [CrossOriginOpenerPolicyValue](./puppeteer.protocol.network.crossoriginopenerpolicyvalue.md) | |
|
||||||
| [value](./puppeteer.protocol.network.crossoriginopenerpolicystatus.value.md) | [CrossOriginOpenerPolicyValue](./puppeteer.protocol.network.crossoriginopenerpolicyvalue.md) | |
|
| [value](./puppeteer.protocol.network.crossoriginopenerpolicystatus.value.md) | [CrossOriginOpenerPolicyValue](./puppeteer.protocol.network.crossoriginopenerpolicyvalue.md) | |
|
||||||
|
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [CrossOriginOpenerPolicyStatus](./puppeteer.protocol.network.crossoriginopenerpolicystatus.md) > [reportingEndpoint](./puppeteer.protocol.network.crossoriginopenerpolicystatus.reportingendpoint.md)
|
||||||
|
|
||||||
|
## Protocol.Network.CrossOriginOpenerPolicyStatus.reportingEndpoint property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
reportingEndpoint?: string;
|
||||||
|
```
|
@ -0,0 +1,11 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [CrossOriginOpenerPolicyStatus](./puppeteer.protocol.network.crossoriginopenerpolicystatus.md) > [reportOnlyReportingEndpoint](./puppeteer.protocol.network.crossoriginopenerpolicystatus.reportonlyreportingendpoint.md)
|
||||||
|
|
||||||
|
## Protocol.Network.CrossOriginOpenerPolicyStatus.reportOnlyReportingEndpoint property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
reportOnlyReportingEndpoint?: string;
|
||||||
|
```
|
@ -0,0 +1,11 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [CrossOriginOpenerPolicyStatus](./puppeteer.protocol.network.crossoriginopenerpolicystatus.md) > [reportOnlyValue](./puppeteer.protocol.network.crossoriginopenerpolicystatus.reportonlyvalue.md)
|
||||||
|
|
||||||
|
## Protocol.Network.CrossOriginOpenerPolicyStatus.reportOnlyValue property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
reportOnlyValue: CrossOriginOpenerPolicyValue;
|
||||||
|
```
|
@ -77,6 +77,7 @@ export namespace Network
|
|||||||
| [SearchInResponseBodyResponse](./puppeteer.protocol.network.searchinresponsebodyresponse.md) | |
|
| [SearchInResponseBodyResponse](./puppeteer.protocol.network.searchinresponsebodyresponse.md) | |
|
||||||
| [SecurityDetails](./puppeteer.protocol.network.securitydetails.md) | Security details about a request. |
|
| [SecurityDetails](./puppeteer.protocol.network.securitydetails.md) | Security details about a request. |
|
||||||
| [SecurityIsolationStatus](./puppeteer.protocol.network.securityisolationstatus.md) | |
|
| [SecurityIsolationStatus](./puppeteer.protocol.network.securityisolationstatus.md) | |
|
||||||
|
| [SetAttachDebugHeaderRequest](./puppeteer.protocol.network.setattachdebugheaderrequest.md) | |
|
||||||
| [SetBlockedURLsRequest](./puppeteer.protocol.network.setblockedurlsrequest.md) | |
|
| [SetBlockedURLsRequest](./puppeteer.protocol.network.setblockedurlsrequest.md) | |
|
||||||
| [SetBypassServiceWorkerRequest](./puppeteer.protocol.network.setbypassserviceworkerrequest.md) | |
|
| [SetBypassServiceWorkerRequest](./puppeteer.protocol.network.setbypassserviceworkerrequest.md) | |
|
||||||
| [SetCacheDisabledRequest](./puppeteer.protocol.network.setcachedisabledrequest.md) | |
|
| [SetCacheDisabledRequest](./puppeteer.protocol.network.setcachedisabledrequest.md) | |
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [SetAttachDebugHeaderRequest](./puppeteer.protocol.network.setattachdebugheaderrequest.md) > [enabled](./puppeteer.protocol.network.setattachdebugheaderrequest.enabled.md)
|
||||||
|
|
||||||
|
## Protocol.Network.SetAttachDebugHeaderRequest.enabled property
|
||||||
|
|
||||||
|
Whether to send a debug header.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
enabled: boolean;
|
||||||
|
```
|
@ -0,0 +1,18 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Network](./puppeteer.protocol.network.md) > [SetAttachDebugHeaderRequest](./puppeteer.protocol.network.setattachdebugheaderrequest.md)
|
||||||
|
|
||||||
|
## Protocol.Network.SetAttachDebugHeaderRequest interface
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export interface SetAttachDebugHeaderRequest
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [enabled](./puppeteer.protocol.network.setattachdebugheaderrequest.enabled.md) | boolean | Whether to send a debug header. |
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Overlay](./puppeteer.protocol.overlay.md) > [GridHighlightConfig](./puppeteer.protocol.overlay.gridhighlightconfig.md) > [gridBackgroundColor](./puppeteer.protocol.overlay.gridhighlightconfig.gridbackgroundcolor.md)
|
||||||
|
|
||||||
|
## Protocol.Overlay.GridHighlightConfig.gridBackgroundColor property
|
||||||
|
|
||||||
|
The grid container background color (Default: transparent).
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
gridBackgroundColor?: DOM.RGBA;
|
||||||
|
```
|
@ -23,6 +23,7 @@ export interface GridHighlightConfig
|
|||||||
| [columnHatchColor](./puppeteer.protocol.overlay.gridhighlightconfig.columnhatchcolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The column gap hatching fill color (default: transparent). |
|
| [columnHatchColor](./puppeteer.protocol.overlay.gridhighlightconfig.columnhatchcolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The column gap hatching fill color (default: transparent). |
|
||||||
| [columnLineColor](./puppeteer.protocol.overlay.gridhighlightconfig.columnlinecolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The column line color (default: transparent). |
|
| [columnLineColor](./puppeteer.protocol.overlay.gridhighlightconfig.columnlinecolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The column line color (default: transparent). |
|
||||||
| [columnLineDash](./puppeteer.protocol.overlay.gridhighlightconfig.columnlinedash.md) | boolean | Whether column lines are dashed (default: false). |
|
| [columnLineDash](./puppeteer.protocol.overlay.gridhighlightconfig.columnlinedash.md) | boolean | Whether column lines are dashed (default: false). |
|
||||||
|
| [gridBackgroundColor](./puppeteer.protocol.overlay.gridhighlightconfig.gridbackgroundcolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The grid container background color (Default: transparent). |
|
||||||
| [gridBorderColor](./puppeteer.protocol.overlay.gridhighlightconfig.gridbordercolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The grid container border highlight color (default: transparent). |
|
| [gridBorderColor](./puppeteer.protocol.overlay.gridhighlightconfig.gridbordercolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The grid container border highlight color (default: transparent). |
|
||||||
| [gridBorderDash](./puppeteer.protocol.overlay.gridhighlightconfig.gridborderdash.md) | boolean | Whether the grid border is dashed (default: false). |
|
| [gridBorderDash](./puppeteer.protocol.overlay.gridhighlightconfig.gridborderdash.md) | boolean | Whether the grid border is dashed (default: false). |
|
||||||
| [rowGapColor](./puppeteer.protocol.overlay.gridhighlightconfig.rowgapcolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The row gap highlight fill color (default: transparent). |
|
| [rowGapColor](./puppeteer.protocol.overlay.gridhighlightconfig.rowgapcolor.md) | [DOM.RGBA](./puppeteer.protocol.dom.rgba.md) | The row gap highlight fill color (default: transparent). |
|
||||||
|
18
new-docs/puppeteer.protocol.profiler.getcountersresponse.md
Normal file
18
new-docs/puppeteer.protocol.profiler.getcountersresponse.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Profiler](./puppeteer.protocol.profiler.md) > [GetCountersResponse](./puppeteer.protocol.profiler.getcountersresponse.md)
|
||||||
|
|
||||||
|
## Protocol.Profiler.GetCountersResponse interface
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export interface GetCountersResponse
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [result](./puppeteer.protocol.profiler.getcountersresponse.result.md) | [CounterInfo](./puppeteer.protocol.profiler.counterinfo.md)<!-- -->\[\] | Collected counters information. |
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Profiler](./puppeteer.protocol.profiler.md) > [GetCountersResponse](./puppeteer.protocol.profiler.getcountersresponse.md) > [result](./puppeteer.protocol.profiler.getcountersresponse.result.md)
|
||||||
|
|
||||||
|
## Protocol.Profiler.GetCountersResponse.result property
|
||||||
|
|
||||||
|
Collected counters information.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
result: CounterInfo[];
|
||||||
|
```
|
@ -14,5 +14,5 @@ export interface GetRuntimeCallStatsResponse
|
|||||||
|
|
||||||
| Property | Type | Description |
|
| Property | Type | Description |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| [result](./puppeteer.protocol.profiler.getruntimecallstatsresponse.result.md) | [CounterInfo](./puppeteer.protocol.profiler.counterinfo.md)<!-- -->\[\] | Collected counter information. |
|
| [result](./puppeteer.protocol.profiler.getruntimecallstatsresponse.result.md) | [RuntimeCallCounterInfo](./puppeteer.protocol.profiler.runtimecallcounterinfo.md)<!-- -->\[\] | Collected runtime call counter information. |
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
## Protocol.Profiler.GetRuntimeCallStatsResponse.result property
|
## Protocol.Profiler.GetRuntimeCallStatsResponse.result property
|
||||||
|
|
||||||
Collected counter information.
|
Collected runtime call counter information.
|
||||||
|
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
result: CounterInfo[];
|
result: RuntimeCallCounterInfo[];
|
||||||
```
|
```
|
||||||
|
@ -20,11 +20,13 @@ export namespace Profiler
|
|||||||
| [CoverageRange](./puppeteer.protocol.profiler.coveragerange.md) | Coverage data for a source range. |
|
| [CoverageRange](./puppeteer.protocol.profiler.coveragerange.md) | Coverage data for a source range. |
|
||||||
| [FunctionCoverage](./puppeteer.protocol.profiler.functioncoverage.md) | Coverage data for a JavaScript function. |
|
| [FunctionCoverage](./puppeteer.protocol.profiler.functioncoverage.md) | Coverage data for a JavaScript function. |
|
||||||
| [GetBestEffortCoverageResponse](./puppeteer.protocol.profiler.getbesteffortcoverageresponse.md) | |
|
| [GetBestEffortCoverageResponse](./puppeteer.protocol.profiler.getbesteffortcoverageresponse.md) | |
|
||||||
|
| [GetCountersResponse](./puppeteer.protocol.profiler.getcountersresponse.md) | |
|
||||||
| [GetRuntimeCallStatsResponse](./puppeteer.protocol.profiler.getruntimecallstatsresponse.md) | |
|
| [GetRuntimeCallStatsResponse](./puppeteer.protocol.profiler.getruntimecallstatsresponse.md) | |
|
||||||
| [PositionTickInfo](./puppeteer.protocol.profiler.positiontickinfo.md) | Specifies a number of samples attributed to a certain source position. |
|
| [PositionTickInfo](./puppeteer.protocol.profiler.positiontickinfo.md) | Specifies a number of samples attributed to a certain source position. |
|
||||||
| [PreciseCoverageDeltaUpdateEvent](./puppeteer.protocol.profiler.precisecoveragedeltaupdateevent.md) | Reports coverage delta since the last poll (either from an event like this, or from <code>takePreciseCoverage</code> for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediatelly at a certain point in time. |
|
| [PreciseCoverageDeltaUpdateEvent](./puppeteer.protocol.profiler.precisecoveragedeltaupdateevent.md) | Reports coverage delta since the last poll (either from an event like this, or from <code>takePreciseCoverage</code> for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediatelly at a certain point in time. |
|
||||||
| [Profile](./puppeteer.protocol.profiler.profile.md) | Profile. |
|
| [Profile](./puppeteer.protocol.profiler.profile.md) | Profile. |
|
||||||
| [ProfileNode](./puppeteer.protocol.profiler.profilenode.md) | Profile node. Holds callsite information, execution statistics and child nodes. |
|
| [ProfileNode](./puppeteer.protocol.profiler.profilenode.md) | Profile node. Holds callsite information, execution statistics and child nodes. |
|
||||||
|
| [RuntimeCallCounterInfo](./puppeteer.protocol.profiler.runtimecallcounterinfo.md) | Runtime call counter information. |
|
||||||
| [ScriptCoverage](./puppeteer.protocol.profiler.scriptcoverage.md) | Coverage data for a JavaScript script. |
|
| [ScriptCoverage](./puppeteer.protocol.profiler.scriptcoverage.md) | Coverage data for a JavaScript script. |
|
||||||
| [ScriptTypeProfile](./puppeteer.protocol.profiler.scripttypeprofile.md) | Type profile data collected during runtime for a JavaScript script. |
|
| [ScriptTypeProfile](./puppeteer.protocol.profiler.scripttypeprofile.md) | Type profile data collected during runtime for a JavaScript script. |
|
||||||
| [SetSamplingIntervalRequest](./puppeteer.protocol.profiler.setsamplingintervalrequest.md) | |
|
| [SetSamplingIntervalRequest](./puppeteer.protocol.profiler.setsamplingintervalrequest.md) | |
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Profiler](./puppeteer.protocol.profiler.md) > [RuntimeCallCounterInfo](./puppeteer.protocol.profiler.runtimecallcounterinfo.md)
|
||||||
|
|
||||||
|
## Protocol.Profiler.RuntimeCallCounterInfo interface
|
||||||
|
|
||||||
|
Runtime call counter information.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export interface RuntimeCallCounterInfo
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [name](./puppeteer.protocol.profiler.runtimecallcounterinfo.name.md) | string | Counter name. |
|
||||||
|
| [time](./puppeteer.protocol.profiler.runtimecallcounterinfo.time.md) | number | Counter time in seconds. |
|
||||||
|
| [value](./puppeteer.protocol.profiler.runtimecallcounterinfo.value.md) | number | Counter value. |
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Profiler](./puppeteer.protocol.profiler.md) > [RuntimeCallCounterInfo](./puppeteer.protocol.profiler.runtimecallcounterinfo.md) > [name](./puppeteer.protocol.profiler.runtimecallcounterinfo.name.md)
|
||||||
|
|
||||||
|
## Protocol.Profiler.RuntimeCallCounterInfo.name property
|
||||||
|
|
||||||
|
Counter name.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
name: string;
|
||||||
|
```
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Profiler](./puppeteer.protocol.profiler.md) > [RuntimeCallCounterInfo](./puppeteer.protocol.profiler.runtimecallcounterinfo.md) > [time](./puppeteer.protocol.profiler.runtimecallcounterinfo.time.md)
|
||||||
|
|
||||||
|
## Protocol.Profiler.RuntimeCallCounterInfo.time property
|
||||||
|
|
||||||
|
Counter time in seconds.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
time: number;
|
||||||
|
```
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Profiler](./puppeteer.protocol.profiler.md) > [RuntimeCallCounterInfo](./puppeteer.protocol.profiler.runtimecallcounterinfo.md) > [value](./puppeteer.protocol.profiler.runtimecallcounterinfo.value.md)
|
||||||
|
|
||||||
|
## Protocol.Profiler.RuntimeCallCounterInfo.value property
|
||||||
|
|
||||||
|
Counter value.
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
value: number;
|
||||||
|
```
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
## Protocol.WebAudio.AudioListener interface
|
## Protocol.WebAudio.AudioListener interface
|
||||||
|
|
||||||
Protocol object for AudioListner
|
Protocol object for AudioListener
|
||||||
|
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ export namespace WebAudio
|
|||||||
|
|
||||||
| Interface | Description |
|
| Interface | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| [AudioListener](./puppeteer.protocol.webaudio.audiolistener.md) | Protocol object for AudioListner |
|
| [AudioListener](./puppeteer.protocol.webaudio.audiolistener.md) | Protocol object for AudioListener |
|
||||||
| [AudioListenerCreatedEvent](./puppeteer.protocol.webaudio.audiolistenercreatedevent.md) | Notifies that the construction of an AudioListener has finished. |
|
| [AudioListenerCreatedEvent](./puppeteer.protocol.webaudio.audiolistenercreatedevent.md) | Notifies that the construction of an AudioListener has finished. |
|
||||||
| [AudioListenerWillBeDestroyedEvent](./puppeteer.protocol.webaudio.audiolistenerwillbedestroyedevent.md) | Notifies that a new AudioListener has been created. |
|
| [AudioListenerWillBeDestroyedEvent](./puppeteer.protocol.webaudio.audiolistenerwillbedestroyedevent.md) | Notifies that a new AudioListener has been created. |
|
||||||
| [AudioNode](./puppeteer.protocol.webaudio.audionode.md) | Protocol object for AudioNode |
|
| [AudioNode](./puppeteer.protocol.webaudio.audionode.md) | Protocol object for AudioNode |
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.0",
|
||||||
"devtools-protocol": "0.0.799653",
|
"devtools-protocol": "0.0.809251",
|
||||||
"extract-zip": "^2.0.0",
|
"extract-zip": "^2.0.0",
|
||||||
"https-proxy-agent": "^4.0.0",
|
"https-proxy-agent": "^4.0.0",
|
||||||
"pkg-dir": "^4.2.0",
|
"pkg-dir": "^4.2.0",
|
||||||
|
@ -650,7 +650,7 @@ export class BrowserContext extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
async overridePermissions(
|
async overridePermissions(
|
||||||
origin: string,
|
origin: string,
|
||||||
permissions: Protocol.Browser.PermissionType[]
|
permissions: string[]
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const webPermissionToProtocol = new Map<
|
const webPermissionToProtocol = new Map<
|
||||||
string,
|
string,
|
||||||
@ -676,7 +676,7 @@ export class BrowserContext extends EventEmitter {
|
|||||||
// chrome-specific permissions we have.
|
// chrome-specific permissions we have.
|
||||||
['midi-sysex', 'midiSysex'],
|
['midi-sysex', 'midiSysex'],
|
||||||
]);
|
]);
|
||||||
permissions = permissions.map((permission) => {
|
const protocolPermissions = permissions.map((permission) => {
|
||||||
const protocolPermission = webPermissionToProtocol.get(permission);
|
const protocolPermission = webPermissionToProtocol.get(permission);
|
||||||
if (!protocolPermission)
|
if (!protocolPermission)
|
||||||
throw new Error('Unknown permission: ' + permission);
|
throw new Error('Unknown permission: ' + permission);
|
||||||
@ -685,7 +685,7 @@ export class BrowserContext extends EventEmitter {
|
|||||||
await this._connection.send('Browser.grantPermissions', {
|
await this._connection.send('Browser.grantPermissions', {
|
||||||
origin,
|
origin,
|
||||||
browserContextId: this._id || undefined,
|
browserContextId: this._id || undefined,
|
||||||
permissions,
|
permissions: protocolPermissions,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,6 +20,6 @@ type Revisions = Readonly<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
export const PUPPETEER_REVISIONS: Revisions = {
|
export const PUPPETEER_REVISIONS: Revisions = {
|
||||||
chromium: '800071',
|
chromium: '809590',
|
||||||
firefox: 'latest',
|
firefox: 'latest',
|
||||||
};
|
};
|
||||||
|
@ -43,7 +43,7 @@ describeFailsFirefox('Emulate idle state', () => {
|
|||||||
it('changing idle state emulation causes change of the IdleDetector state', async () => {
|
it('changing idle state emulation causes change of the IdleDetector state', async () => {
|
||||||
const { page, server, context } = getTestState();
|
const { page, server, context } = getTestState();
|
||||||
await context.overridePermissions(server.PREFIX + '/idle-detector.html', [
|
await context.overridePermissions(server.PREFIX + '/idle-detector.html', [
|
||||||
'notifications',
|
'idle-detection',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await page.goto(server.PREFIX + '/idle-detector.html');
|
await page.goto(server.PREFIX + '/idle-detector.html');
|
||||||
|
@ -246,7 +246,6 @@ describe('Page', function () {
|
|||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
let error = null;
|
let error = null;
|
||||||
await context
|
await context
|
||||||
// @ts-expect-error
|
|
||||||
.overridePermissions(server.EMPTY_PAGE, ['foo'])
|
.overridePermissions(server.EMPTY_PAGE, ['foo'])
|
||||||
.catch((error_) => (error = error_));
|
.catch((error_) => (error = error_));
|
||||||
expect(error.message).toBe('Unknown permission: foo');
|
expect(error.message).toBe('Unknown permission: foo');
|
||||||
|
Loading…
Reference in New Issue
Block a user