Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

browser(chromium): roll chromium to r790602 (#3082)

Pavel Feldmanf50f228a1ff8
diff --git a/README.md b/README.md
index d184760f9c..8be8ff93b0 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# 🎭 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-86.0.4197.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-78.0b5-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-86.0.4209.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-78.0b5-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/)
##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)
@@ -8,7 +8,7 @@ Playwright is a Node library to automate [Chromium](https://www.chromium.org/Hom
| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
-| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| Chromium <!-- GEN:chromium-version -->86.0.4209.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 -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
diff --git a/browsers.json b/browsers.json
index 4cef872285..17574bc0b6 100644
--- a/browsers.json
+++ b/browsers.json
@@ -3,7 +3,7 @@
"browsers": [
{
"name": "chromium",
- "revision": "786218"
+ "revision": "790602"
},
{
"name": "firefox",
diff --git a/src/chromium/protocol.ts b/src/chromium/protocol.ts
index f8dc4864fb..9cb92d023a 100644
--- a/src/chromium/protocol.ts
+++ b/src/chromium/protocol.ts
@@ -735,6 +735,11 @@ some CSP errors in the future.
frame: AffectedFrame;
}
export type ContentSecurityPolicyViolationType = "kInlineViolation"|"kEvalViolation"|"kURLViolation"|"kTrustedTypesSinkViolation"|"kTrustedTypesPolicyViolation";
+ export interface SourceCodeLocation {
+ url: string;
+ lineNumber: number;
+ columnNumber: number;
+ }
export interface ContentSecurityPolicyIssueDetails {
/**
* The url not included in allowed sources.
@@ -746,6 +751,7 @@ some CSP errors in the future.
violatedDirective: string;
contentSecurityPolicyViolationType: ContentSecurityPolicyViolationType;
frameAncestor?: AffectedFrame;
+ sourceCodeLocation?: SourceCodeLocation;
}
/**
* A unique identifier for the type of issue. Each type may use one of the
@@ -1670,8 +1676,34 @@ available).
*/
glyphCount: number;
}
+ /**
+ * Information about font variation axes for variable fonts
+ */
+ export interface FontVariationAxis {
+ /**
+ * The font-variation-setting tag (a.k.a. "axis tag").
+ */
+ tag: string;
+ /**
+ * Human-readable variation name in the default language (normally, "en").
+ */
+ name: string;
+ /**
+ * The minimum value (inclusive) the font supports for this tag.
+ */
+ minValue: number;
+ /**
+ * The maximum value (inclusive) the font supports for this tag.
+ */
+ maxValue: number;
+ /**
+ * The default value.
+ */
+ defaultValue: number;
+ }
/**
* Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions
+and additional information such as platformFontFamily and fontVariationAxes.
*/
export interface FontFace {
/**
@@ -1706,6 +1738,10 @@ available).
* The resolved platform font family
*/
platformFontFamily: string;
+ /**
+ * Available variation settings (a.k.a. "axes").
+ */
+ fontVariationAxes?: FontVariationAxis[];
}
/**
* CSS keyframes rule representation.
@@ -4494,6 +4530,23 @@ flattened.
*/
angle: number;
}
+ export interface DisplayFeature {
+ /**
+ * Orientation of a display feature in relation to screen
+ */
+ orientation: "vertical"|"horizontal";
+ /**
+ * The offset from the screen origin in either the x (for vertical
+orientation) or y (for horizontal orientation) direction.
+ */
+ offset: number;
+ /**
+ * A display feature may mask content such that it is not physically
+displayed - this length along with the offset describes this area.
+A display feature that only splits content will have a 0 mask_length.
+ */
+ maskLength: number;
+ }
export interface MediaFeature {
name: string;
value: string;
@@ -4653,6 +4706,11 @@ autosizing and more.
change is not observed by the page, e.g. viewport-relative elements do not change positions.
*/
viewport?: Page.Viewport;
+ /**
+ * If set, the display feature of a multi-segment screen. If not set, multi-segment support
+is turned-off.
+ */
+ displayFeature?: DisplayFeature;
}
export type setDeviceMetricsOverrideReturnValue = {
}
@@ -6447,6 +6505,12 @@ milliseconds relatively to this requestTime.
* Loading priority of a resource request.
*/
export type ResourcePriority = "VeryLow"|"Low"|"Medium"|"High"|"VeryHigh";
+ /**
+ * Post data entry for HTTP request
+ */
+ export interface PostDataEntry {
+ bytes?: binary;
+ }
/**
* HTTP request data.
*/
@@ -6475,6 +6539,10 @@ milliseconds relatively to this requestTime.
* True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
*/
hasPostData?: boolean;
+ /**
+ * Request body elements. This will be converted from base64 to binary
+ */
+ postDataEntries?: PostDataEntry[];
/**
* The mixed content type of the request.
*/
@@ -8047,6 +8115,14 @@ continueInterceptedRequest call.
* Show area name labels (default: false).
*/
showAreaNames?: boolean;
+ /**
+ * Show line name labels (default: false).
+ */
+ showLineNames?: boolean;
+ /**
+ * Show track size labels (default: false).
+ */
+ showTrackSizes?: boolean;
/**
* The grid container border highlight color (default: transparent).
*/
@@ -8150,6 +8226,19 @@ continueInterceptedRequest call.
gridHighlightConfig?: GridHighlightConfig;
}
export type ColorFormat = "rgb"|"hsl"|"hex";
+ /**
+ * Configurations for Persistent Grid Highlight
+ */
+ export interface GridNodeHighlightConfig {
+ /**
+ * A descriptor for the highlight appearance.
+ */
+ gridHighlightConfig: GridHighlightConfig;
+ /**
+ * Identifier of the node to highlight.
+ */
+ nodeId: DOM.NodeId;
+ }
/**
* Configuration for dual screen hinge
*/
@@ -8244,6 +8333,21 @@ user manually inspects an element.
*/
highlight: { [key: string]: string };
}
+ /**
+ * For Persistent Grid testing.
+ */
+ export type getGridHighlightObjectsForTestParameters = {
+ /**
+ * Ids of the node to get highlight object for.
+ */
+ nodeIds: DOM.NodeId[];
+ }
+ export type getGridHighlightObjectsForTestReturnValue = {
+ /**
+ * Grid Highlight data for the node ids provided.
+ */
+ highlights: { [key: string]: string };
+ }
/**
* Hides any highlight.
*/
@@ -8406,6 +8510,17 @@ Backend then generates 'inspectNodeRequested' event upon element selection.
}
export type setShowFPSCounterReturnValue = {
}
+ /**
+ * Highlight multiple elements with the CSS Grid overlay.
+ */
+ export type setShowGridOverlaysParameters = {
+ /**
+ * An array of node identifiers and descriptors for the highlight appearance.
+ */
+ gridNodeHighlightConfigs: GridNodeHighlightConfig[];
+ }
+ export type setShowGridOverlaysReturnValue = {
+ }
/**
* Requests that backend shows paint rectangles
*/
@@ -8482,6 +8597,10 @@ Backend then generates 'inspectNodeRequested' event upon element selection.
* Unique frame identifier.
*/
export type FrameId = string;
+ /**
+ * Indicates whether a frame has been identified as an ad.
+ */
+ export type AdFrameType = "none"|"child"|"root";
/**
* Information about the Frame on the page.
*/
@@ -8522,6 +8641,10 @@ Backend then generates 'inspectNodeRequested' event upon element selection.
* If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
*/
unreachableUrl?: string;
+ /**
+ * Indicates whether this frame was tagged as an ad.
+ */
+ adFrameType?: AdFrameType;
}
/**
* Information about the Resource on the page.
@@ -15184,6 +15307,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Overlay.disable": Overlay.disableParameters;
"Overlay.enable": Overlay.enableParameters;
"Overlay.getHighlightObjectForTest": Overlay.getHighlightObjectForTestParameters;
+ "Overlay.getGridHighlightObjectsForTest": Overlay.getGridHighlightObjectsForTestParameters;
"Overlay.hideHighlight": Overlay.hideHighlightParameters;
"Overlay.highlightFrame": Overlay.highlightFrameParameters;
"Overlay.highlightNode": Overlay.highlightNodeParameters;
@@ -15194,6 +15318,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Overlay.setPausedInDebuggerMessage": Overlay.setPausedInDebuggerMessageParameters;
"Overlay.setShowDebugBorders": Overlay.setShowDebugBordersParameters;
"Overlay.setShowFPSCounter": Overlay.setShowFPSCounterParameters;
+ "Overlay.setShowGridOverlays": Overlay.setShowGridOverlaysParameters;
"Overlay.setShowPaintRects": Overlay.setShowPaintRectsParameters;
"Overlay.setShowLayoutShiftRegions": Overlay.setShowLayoutShiftRegionsParameters;
"Overlay.setShowScrollBottleneckRects": Overlay.setShowScrollBottleneckRectsParameters;
@@ -15667,6 +15792,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Overlay.disable": Overlay.disableReturnValue;
"Overlay.enable": Overlay.enableReturnValue;
"Overlay.getHighlightObjectForTest": Overlay.getHighlightObjectForTestReturnValue;
+ "Overlay.getGridHighlightObjectsForTest": Overlay.getGridHighlightObjectsForTestReturnValue;
"Overlay.hideHighlight": Overlay.hideHighlightReturnValue;
"Overlay.highlightFrame": Overlay.highlightFrameReturnValue;
"Overlay.highlightNode": Overlay.highlightNodeReturnValue;
@@ -15677,6 +15803,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Overlay.setPausedInDebuggerMessage": Overlay.setPausedInDebuggerMessageReturnValue;
"Overlay.setShowDebugBorders": Overlay.setShowDebugBordersReturnValue;
"Overlay.setShowFPSCounter": Overlay.setShowFPSCounterReturnValue;
+ "Overlay.setShowGridOverlays": Overlay.setShowGridOverlaysReturnValue;
"Overlay.setShowPaintRects": Overlay.setShowPaintRectsReturnValue;
"Overlay.setShowLayoutShiftRegions": Overlay.setShowLayoutShiftRegionsReturnValue;
"Overlay.setShowScrollBottleneckRects": Overlay.setShowScrollBottleneckRectsReturnValue;