Skip to content

Commit

Permalink
feat(chromium): roll to 815036 (#4099)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder authored Oct 9, 2020
1 parent 80773fa commit 9801be6
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 🎭 Playwright

[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)
[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)

## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)

Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.

| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |

Expand Down
2 changes: 1 addition & 1 deletion browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browsers": [
{
"name": "chromium",
"revision": "808777",
"revision": "815036",
"download": true
},
{
Expand Down
126 changes: 122 additions & 4 deletions src/server/chromium/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,42 @@ children, if requested.
export type getFullAXTreeReturnValue = {
nodes: AXNode[];
}
/**
* Query a DOM node's accessibility subtree for accessible name and role.
This command computes the name and role for all nodes in the subtree, including those that are
ignored for accessibility, and returns those that mactch the specified name and role. If no DOM
node is specified, or the DOM node does not exist, the command returns an error. If neither
`accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.
*/
export type queryAXTreeParameters = {
/**
* Identifier of the node for the root to query.
*/
nodeId?: DOM.NodeId;
/**
* Identifier of the backend node for the root to query.
*/
backendNodeId?: DOM.BackendNodeId;
/**
* JavaScript object id of the node wrapper for the root to query.
*/
objectId?: Runtime.RemoteObjectId;
/**
* Find nodes with this computed name.
*/
accessibleName?: string;
/**
* Find nodes with this computed role.
*/
role?: string;
}
export type queryAXTreeReturnValue = {
/**
* A list of `Accessibility.AXNode` matching the specified attributes,
including nodes that are ignored for accessibility.
*/
nodes: AXNode[];
}
}

export module Animation {
Expand Down Expand Up @@ -6946,6 +6982,11 @@ If the opcode isn't 1, then payloadData is a base64 encoded string representing
module) (0-based).
*/
lineNumber?: number;
/**
* Initiator column number, set for Parser type or for Script type (when script is importing
module) (0-based).
*/
columnNumber?: number;
}
/**
* Cookie object
Expand Down Expand Up @@ -7276,6 +7317,34 @@ https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-
coop: CrossOriginOpenerPolicyStatus;
coep: CrossOriginEmbedderPolicyStatus;
}
/**
* An object providing the result of a network resource load.
*/
export interface LoadNetworkResourcePageResult {
success: boolean;
/**
* Optional values used for error reporting.
*/
netError?: number;
netErrorName?: string;
httpStatusCode?: number;
/**
* If successful, one of the following two fields holds the result.
*/
stream?: IO.StreamHandle;
/**
* Response headers.
*/
headers?: Network.Headers;
}
/**
* An options object that may be extended later to better support CORS,
CORB and streaming.
*/
export interface LoadNetworkResourceOptions {
disableCache: boolean;
includeCredentials: boolean;
}

/**
* Fired when data chunk was received over the network.
Expand Down Expand Up @@ -8116,7 +8185,7 @@ default domain and path values of the created cookie.
}
export type setCookieReturnValue = {
/**
* True if successfully set cookie.
* Always set to true. If an error occurs, the response indicates protocol error.
*/
success: boolean;
}
Expand Down Expand Up @@ -8216,6 +8285,26 @@ continueInterceptedRequest call.
export type getSecurityIsolationStatusReturnValue = {
status: SecurityIsolationStatus;
}
/**
* Fetches the resource and returns the content.
*/
export type loadNetworkResourceParameters = {
/**
* Frame id to get the resource for.
*/
frameId: Page.FrameId;
/**
* URL of the resource to get content for.
*/
url: string;
/**
* Options for the request.
*/
options: LoadNetworkResourceOptions;
}
export type loadNetworkResourceReturnValue = {
resource: LoadNetworkResourcePageResult;
}
}

/**
Expand Down Expand Up @@ -11275,9 +11364,13 @@ supported.
*/
openerId?: TargetID;
/**
* Whether the opened window has access to the originating window.
* Whether the target has access to the originating window.
*/
canAccessOpener: boolean;
/**
* Frame id of originating window (is only set if target has an opener).
*/
openerFrameId?: Page.FrameId;
browserContextId?: Browser.BrowserContextID;
}
export interface RemoteLocation {
Expand Down Expand Up @@ -11403,6 +11496,9 @@ and eventually retire it. See crbug.com/991325.
targetId: TargetID;
}
export type closeTargetReturnValue = {
/**
* Always set to true. If an error occurs, the response indicates protocol error.
*/
success: boolean;
}
/**
Expand Down Expand Up @@ -12405,6 +12501,12 @@ API.
* Defaults to false.
*/
hasUserVerification?: boolean;
/**
* If set to true, the authenticator will support the largeBlob extension.
https://w3c.github.io/webauthn#largeBlob
Defaults to false.
*/
hasLargeBlob?: boolean;
/**
* If set to true, tests of user presence will succeed immediately.
Otherwise, they will not be resolved. Defaults to true.
Expand Down Expand Up @@ -15141,15 +15243,27 @@ Will cancel the termination when the outer-most script execution ends.
* If executionContextId is empty, adds binding with the given name on the
global objects of all inspected contexts, including those created later,
bindings survive reloads.
If executionContextId is specified, adds binding only on global object of
given execution context.
Binding function takes exactly one argument, this argument should be string,
in case of any other input, function throws an exception.
Each binding function call produces Runtime.bindingCalled notification.
*/
export type addBindingParameters = {
name: string;
/**
* If specified, the binding would only be exposed to the specified
execution context. If omitted and `executionContextName` is not set,
the binding is exposed to all execution contexts of the target.
This parameter is mutually exclusive with `executionContextName`.
*/
executionContextId?: ExecutionContextId;
/**
* If specified, the binding is exposed to the executionContext with
matching name, even for contexts created after the binding is added.
See also `ExecutionContext.name` and `worldName` parameter to
`Page.addScriptToEvaluateOnNewDocument`.
This parameter is mutually exclusive with `executionContextId`.
*/
executionContextName?: string;
}
export type addBindingReturnValue = {
}
Expand Down Expand Up @@ -15356,6 +15470,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Accessibility.enable": Accessibility.enableParameters;
"Accessibility.getPartialAXTree": Accessibility.getPartialAXTreeParameters;
"Accessibility.getFullAXTree": Accessibility.getFullAXTreeParameters;
"Accessibility.queryAXTree": Accessibility.queryAXTreeParameters;
"Animation.disable": Animation.disableParameters;
"Animation.enable": Animation.enableParameters;
"Animation.getCurrentTime": Animation.getCurrentTimeParameters;
Expand Down Expand Up @@ -15603,6 +15718,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Network.setRequestInterception": Network.setRequestInterceptionParameters;
"Network.setUserAgentOverride": Network.setUserAgentOverrideParameters;
"Network.getSecurityIsolationStatus": Network.getSecurityIsolationStatusParameters;
"Network.loadNetworkResource": Network.loadNetworkResourceParameters;
"Overlay.disable": Overlay.disableParameters;
"Overlay.enable": Overlay.enableParameters;
"Overlay.getHighlightObjectForTest": Overlay.getHighlightObjectForTestParameters;
Expand Down Expand Up @@ -15853,6 +15969,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Accessibility.enable": Accessibility.enableReturnValue;
"Accessibility.getPartialAXTree": Accessibility.getPartialAXTreeReturnValue;
"Accessibility.getFullAXTree": Accessibility.getFullAXTreeReturnValue;
"Accessibility.queryAXTree": Accessibility.queryAXTreeReturnValue;
"Animation.disable": Animation.disableReturnValue;
"Animation.enable": Animation.enableReturnValue;
"Animation.getCurrentTime": Animation.getCurrentTimeReturnValue;
Expand Down Expand Up @@ -16100,6 +16217,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Network.setRequestInterception": Network.setRequestInterceptionReturnValue;
"Network.setUserAgentOverride": Network.setUserAgentOverrideReturnValue;
"Network.getSecurityIsolationStatus": Network.getSecurityIsolationStatusReturnValue;
"Network.loadNetworkResource": Network.loadNetworkResourceReturnValue;
"Overlay.disable": Overlay.disableReturnValue;
"Overlay.enable": Overlay.enableReturnValue;
"Overlay.getHighlightObjectForTest": Overlay.getHighlightObjectForTestReturnValue;
Expand Down

0 comments on commit 9801be6

Please sign in to comment.