diff --git a/README.md b/README.md index 96b8d8d964..4284942e6e 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://aka.ms/playwright-slack) [![Chromium version](https://img.shields.io/badge/chromium-91.0.4455.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home) [![Firefox version](https://img.shields.io/badge/firefox-88.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/) [![WebKit version](https://img.shields.io/badge/webkit-14.2-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://aka.ms/playwright-slack) [![Chromium version](https://img.shields.io/badge/chromium-91.0.4464.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home) [![Firefox version](https://img.shields.io/badge/firefox-88.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/) [![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/) ## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/) @@ -8,7 +8,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/ | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 91.0.4455.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Chromium 91.0.4464.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | WebKit 14.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Firefox 88.0b6 | :white_check_mark: | :white_check_mark: | :white_check_mark: | diff --git a/browsers.json b/browsers.json index d0e0e8be27..a5a6b5c78d 100644 --- a/browsers.json +++ b/browsers.json @@ -3,7 +3,7 @@ "browsers": [ { "name": "chromium", - "revision": "865012", + "revision": "867878", "installByDefault": true }, { diff --git a/src/server/chromium/chromium.ts b/src/server/chromium/chromium.ts index d2eaf238b5..e091e55d2c 100644 --- a/src/server/chromium/chromium.ts +++ b/src/server/chromium/chromium.ts @@ -178,6 +178,7 @@ const DEFAULT_ARGS = [ '--disable-extensions', // BlinkGenPropertyTrees disabled due to crbug.com/937609 '--disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading', + '--allow-pre-commit-input', '--disable-hang-monitor', '--disable-ipc-flooding-protection', '--disable-popup-blocking', diff --git a/src/server/chromium/protocol.ts b/src/server/chromium/protocol.ts index 87cc7d80ad..5792522aeb 100644 --- a/src/server/chromium/protocol.ts +++ b/src/server/chromium/protocol.ts @@ -854,6 +854,7 @@ CORS RFC1918 enforcement. corsErrorStatus: Network.CorsErrorStatus; isWarning: boolean; request: AffectedRequest; + initiatorOrigin?: string; resourceIPAddressSpace?: Network.IPAddressSpace; clientSecurityState?: Network.ClientSecurityState; } @@ -7546,6 +7547,10 @@ https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges- */ errors?: SignedExchangeError[]; } + /** + * List of content encodings supported by the backend. + */ + export type ContentEncoding = "deflate"|"gzip"|"br"; export type PrivateNetworkRequestPolicy = "Allow"|"BlockFromInsecureToMorePrivate"|"WarnFromInsecureToMorePrivate"; export type IPAddressSpace = "Local"|"Private"|"Public"|"Unknown"; export interface ClientSecurityState { @@ -8130,6 +8135,24 @@ preemptively (e.g. a cache hit). issuedTokenCount?: number; } + /** + * Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted. + */ + export type setAcceptedEncodingsParameters = { + /** + * List of accepted content encodings. + */ + encodings: ContentEncoding[]; + } + export type setAcceptedEncodingsReturnValue = { + } + /** + * Clears accepted encodings set by setAcceptedEncodings + */ + export type clearAcceptedEncodingsOverrideParameters = { + } + export type clearAcceptedEncodingsOverrideReturnValue = { + } /** * Tells whether clearing browser cache is supported. */ @@ -16444,6 +16467,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications. "Memory.getAllTimeSamplingProfile": Memory.getAllTimeSamplingProfileParameters; "Memory.getBrowserSamplingProfile": Memory.getBrowserSamplingProfileParameters; "Memory.getSamplingProfile": Memory.getSamplingProfileParameters; + "Network.setAcceptedEncodings": Network.setAcceptedEncodingsParameters; + "Network.clearAcceptedEncodingsOverride": Network.clearAcceptedEncodingsOverrideParameters; "Network.canClearBrowserCache": Network.canClearBrowserCacheParameters; "Network.canClearBrowserCookies": Network.canClearBrowserCookiesParameters; "Network.canEmulateNetworkConditions": Network.canEmulateNetworkConditionsParameters; @@ -16956,6 +16981,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications. "Memory.getAllTimeSamplingProfile": Memory.getAllTimeSamplingProfileReturnValue; "Memory.getBrowserSamplingProfile": Memory.getBrowserSamplingProfileReturnValue; "Memory.getSamplingProfile": Memory.getSamplingProfileReturnValue; + "Network.setAcceptedEncodings": Network.setAcceptedEncodingsReturnValue; + "Network.clearAcceptedEncodingsOverride": Network.clearAcceptedEncodingsOverrideReturnValue; "Network.canClearBrowserCache": Network.canClearBrowserCacheReturnValue; "Network.canClearBrowserCookies": Network.canClearBrowserCookiesReturnValue; "Network.canEmulateNetworkConditions": Network.canEmulateNetworkConditionsReturnValue; diff --git a/types/protocol.d.ts b/types/protocol.d.ts index 87cc7d80ad..5792522aeb 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -854,6 +854,7 @@ CORS RFC1918 enforcement. corsErrorStatus: Network.CorsErrorStatus; isWarning: boolean; request: AffectedRequest; + initiatorOrigin?: string; resourceIPAddressSpace?: Network.IPAddressSpace; clientSecurityState?: Network.ClientSecurityState; } @@ -7546,6 +7547,10 @@ https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges- */ errors?: SignedExchangeError[]; } + /** + * List of content encodings supported by the backend. + */ + export type ContentEncoding = "deflate"|"gzip"|"br"; export type PrivateNetworkRequestPolicy = "Allow"|"BlockFromInsecureToMorePrivate"|"WarnFromInsecureToMorePrivate"; export type IPAddressSpace = "Local"|"Private"|"Public"|"Unknown"; export interface ClientSecurityState { @@ -8130,6 +8135,24 @@ preemptively (e.g. a cache hit). issuedTokenCount?: number; } + /** + * Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted. + */ + export type setAcceptedEncodingsParameters = { + /** + * List of accepted content encodings. + */ + encodings: ContentEncoding[]; + } + export type setAcceptedEncodingsReturnValue = { + } + /** + * Clears accepted encodings set by setAcceptedEncodings + */ + export type clearAcceptedEncodingsOverrideParameters = { + } + export type clearAcceptedEncodingsOverrideReturnValue = { + } /** * Tells whether clearing browser cache is supported. */ @@ -16444,6 +16467,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications. "Memory.getAllTimeSamplingProfile": Memory.getAllTimeSamplingProfileParameters; "Memory.getBrowserSamplingProfile": Memory.getBrowserSamplingProfileParameters; "Memory.getSamplingProfile": Memory.getSamplingProfileParameters; + "Network.setAcceptedEncodings": Network.setAcceptedEncodingsParameters; + "Network.clearAcceptedEncodingsOverride": Network.clearAcceptedEncodingsOverrideParameters; "Network.canClearBrowserCache": Network.canClearBrowserCacheParameters; "Network.canClearBrowserCookies": Network.canClearBrowserCookiesParameters; "Network.canEmulateNetworkConditions": Network.canEmulateNetworkConditionsParameters; @@ -16956,6 +16981,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications. "Memory.getAllTimeSamplingProfile": Memory.getAllTimeSamplingProfileReturnValue; "Memory.getBrowserSamplingProfile": Memory.getBrowserSamplingProfileReturnValue; "Memory.getSamplingProfile": Memory.getSamplingProfileReturnValue; + "Network.setAcceptedEncodings": Network.setAcceptedEncodingsReturnValue; + "Network.clearAcceptedEncodingsOverride": Network.clearAcceptedEncodingsOverrideReturnValue; "Network.canClearBrowserCache": Network.canClearBrowserCacheReturnValue; "Network.canClearBrowserCookies": Network.canClearBrowserCookiesReturnValue; "Network.canEmulateNetworkConditions": Network.canEmulateNetworkConditionsReturnValue;