Skip to content

Commit

Permalink
feat(chromium): roll to r1094 (microsoft#28560)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
playwrightmachine and github-actions[bot] authored Dec 8, 2023
1 parent a01ef0e commit 7827838
Show file tree
Hide file tree
Showing 5 changed files with 268 additions and 116 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)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->
[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.8-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->

## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)

Playwright is a framework for Web Testing and Automation. It allows testing [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 -->120.0.6099.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Chromium <!-- GEN:chromium-version -->121.0.6167.8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |

Expand Down
8 changes: 4 additions & 4 deletions packages/playwright-core/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"browsers": [
{
"name": "chromium",
"revision": "1093",
"revision": "1094",
"installByDefault": true,
"browserVersion": "120.0.6099.56"
"browserVersion": "121.0.6167.8"
},
{
"name": "chromium-with-symbols",
"revision": "1093",
"revision": "1094",
"installByDefault": false,
"browserVersion": "120.0.6099.56"
"browserVersion": "121.0.6167.8"
},
{
"name": "chromium-tip-of-tree",
Expand Down
138 changes: 107 additions & 31 deletions packages/playwright-core/src/server/chromium/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ may be used by the front-end as additional context.
request?: AffectedRequest;
}
export type MixedContentResolutionStatus = "MixedContentBlocked"|"MixedContentAutomaticallyUpgraded"|"MixedContentWarning";
export type MixedContentResourceType = "AttributionSrc"|"Audio"|"Beacon"|"CSPReport"|"Download"|"EventSource"|"Favicon"|"Font"|"Form"|"Frame"|"Image"|"Import"|"Manifest"|"Ping"|"PluginData"|"PluginResource"|"Prefetch"|"Resource"|"Script"|"ServiceWorker"|"SharedWorker"|"Stylesheet"|"Track"|"Video"|"Worker"|"XMLHttpRequest"|"XSLT";
export type MixedContentResourceType = "AttributionSrc"|"Audio"|"Beacon"|"CSPReport"|"Download"|"EventSource"|"Favicon"|"Font"|"Form"|"Frame"|"Image"|"Import"|"Manifest"|"Ping"|"PluginData"|"PluginResource"|"Prefetch"|"Resource"|"Script"|"ServiceWorker"|"SharedWorker"|"SpeculationRules"|"Stylesheet"|"Track"|"Video"|"Worker"|"XMLHttpRequest"|"XSLT";
export interface MixedContentIssueDetails {
/**
* The type of resource causing the mixed content issue (css, js, iframe,
Expand Down Expand Up @@ -1367,7 +1367,7 @@ events afterwards if enabled and recording.
export type PermissionSetting = "granted"|"denied"|"prompt";
/**
* Definition of PermissionDescriptor defined in the Permissions API:
https://w3c.github.io/permissions/#dictdef-permissiondescriptor.
https://w3c.github.io/permissions/#dom-permissiondescriptor.
*/
export interface PermissionDescriptor {
/**
Expand Down Expand Up @@ -2334,6 +2334,10 @@ A higher number has higher priority in the cascade order.
* Font's family name reported by platform.
*/
familyName: string;
/**
* Font's PostScript name reported by platform.
*/
postScriptName: string;
/**
* Indicates if the font was downloaded or resolved locally.
*/
Expand Down Expand Up @@ -2464,6 +2468,28 @@ stylesheet rules) this rule came from.
inherits: boolean;
syntax: string;
}
/**
* CSS font-palette-values rule representation.
*/
export interface CSSFontPaletteValuesRule {
/**
* The css style sheet identifier (absent for user agent stylesheet and user-specified
stylesheet rules) this rule came from.
*/
styleSheetId?: StyleSheetId;
/**
* Parent stylesheet's origin.
*/
origin: StyleSheetOrigin;
/**
* Associated font palette name.
*/
fontPaletteName: Value;
/**
* Associated style declaration.
*/
style: CSSStyle;
}
/**
* CSS property at-rule representation.
*/
Expand Down Expand Up @@ -2749,6 +2775,10 @@ attributes) for a DOM node identified by `nodeId`.
* A list of CSS property registrations matching this node.
*/
cssPropertyRegistrations?: CSSPropertyRegistration[];
/**
* A font-palette-values rule matching this node.
*/
cssFontPaletteValuesRule?: CSSFontPaletteValuesRule;
/**
* Id of the first parent element that does not have display: contents.
*/
Expand Down Expand Up @@ -5615,6 +5645,12 @@ A display feature that only splits content will have a 0 mask_length.
*/
maskLength: number;
}
export interface DevicePosture {
/**
* Current posture of the device
*/
type: "continuous"|"folded";
}
export interface MediaFeature {
name: string;
value: string;
Expand Down Expand Up @@ -5834,6 +5870,11 @@ change is not observed by the page, e.g. viewport-relative elements do not chang
is turned-off.
*/
displayFeature?: DisplayFeature;
/**
* If set, the posture of a foldable device. If not set the posture is set
to continuous.
*/
devicePosture?: DevicePosture;
}
export type setDeviceMetricsOverrideReturnValue = {
}
Expand Down Expand Up @@ -6105,7 +6146,7 @@ on Android.
*/
userAgent: string;
/**
* Browser langugage to emulate.
* Browser language to emulate.
*/
acceptLanguage?: string;
/**
Expand Down Expand Up @@ -8131,6 +8172,9 @@ records.
* The reason why Chrome uses a specific transport protocol for HTTP semantics.
*/
export type AlternateProtocolUsage = "alternativeJobWonWithoutRace"|"alternativeJobWonRace"|"mainJobWonRace"|"mappingMissing"|"broken"|"dnsAlpnH3JobWonWithoutRace"|"dnsAlpnH3JobWonRace"|"unspecifiedReason";
export interface ServiceWorkerRouterInfo {
ruleIdMatched: number;
}
/**
* HTTP response data.
*/
Expand Down Expand Up @@ -8195,6 +8239,10 @@ records.
* Specifies that the request was served from the prefetch cache.
*/
fromPrefetchCache?: boolean;
/**
* Infomation about how Service Worker Static Router was used.
*/
serviceWorkerRouterInfo?: ServiceWorkerRouterInfo;
/**
* Total number of bytes received for this request so far.
*/
Expand Down Expand Up @@ -9957,7 +10005,7 @@ continueInterceptedRequest call.
*/
userAgent: string;
/**
* Browser langugage to emulate.
* Browser language to emulate.
*/
acceptLanguage?: string;
/**
Expand Down Expand Up @@ -10889,7 +10937,7 @@ as an ad.
* All Permissions Policy features. This enum should match the one defined
in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
*/
export type PermissionsPolicyFeature = "accelerometer"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-prefers-reduced-motion"|"ch-prefers-reduced-transparency"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-form-factor"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"compute-pressure"|"cross-origin-isolated"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"identity-credentials-get"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"private-aggregation"|"private-state-token-issuance"|"private-state-token-redemption"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"shared-storage"|"shared-storage-select-url"|"smart-card"|"storage-access"|"sync-xhr"|"unload"|"usb"|"vertical-scroll"|"web-share"|"window-management"|"window-placement"|"xr-spatial-tracking";
export type PermissionsPolicyFeature = "accelerometer"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-prefers-reduced-motion"|"ch-prefers-reduced-transparency"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-form-factor"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"compute-pressure"|"cross-origin-isolated"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"identity-credentials-get"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"private-aggregation"|"private-state-token-issuance"|"private-state-token-redemption"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"shared-storage"|"shared-storage-select-url"|"smart-card"|"storage-access"|"sync-xhr"|"unload"|"usb"|"usb-unrestricted"|"vertical-scroll"|"web-printing"|"web-share"|"window-management"|"window-placement"|"xr-spatial-tracking";
/**
* Reason for a permissions policy feature to be disabled.
*/
Expand Down Expand Up @@ -11988,19 +12036,6 @@ as an ad. Only sent if frame is labelled as an ad and id is available.
*/
adScriptId?: AdScriptId;
}
/**
* Returns all browser cookies for the page and all of its subframes. Depending
on the backend support, will return detailed cookie information in the
`cookies` field.
*/
export type getCookiesParameters = {
}
export type getCookiesReturnValue = {
/**
* Array of cookie objects.
*/
cookies: Network.Cookie[];
}
/**
* Returns present frame tree structure.
*/
Expand Down Expand Up @@ -12250,6 +12285,10 @@ in which case the content will be scaled to fit the paper size.
* Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
*/
generateTaggedPDF?: boolean;
/**
* Whether or not to embed the document outline into the PDF.
*/
generateDocumentOutline?: boolean;
}
export type printToPDFReturnValue = {
/**
Expand Down Expand Up @@ -13228,6 +13267,7 @@ For cached script it is the last time the cache entry was validated.
scriptResponseTime?: number;
controlledClients?: Target.TargetID[];
targetId?: Target.TargetID;
routerRules?: string;
}
/**
* ServiceWorker error message.
Expand Down Expand Up @@ -13510,14 +13550,22 @@ SharedStorageAccessType.workletSet.
*/
ends: number[];
}
export interface AttributionReportingTriggerSpec {
/**
* number instead of integer because not all uint32 can be represented by
int
*/
triggerData: number[];
eventReportWindows: AttributionReportingEventReportWindows;
}
export type AttributionReportingTriggerDataMatching = "exact"|"modulus";
export interface AttributionReportingSourceRegistration {
time: Network.TimeSinceEpoch;
/**
* duration in seconds
*/
expiry: number;
eventReportWindows: AttributionReportingEventReportWindows;
triggerSpecs: AttributionReportingTriggerSpec[];
/**
* duration in seconds
*/
Expand Down Expand Up @@ -15623,6 +15671,18 @@ Otherwise, they will not be resolved. Defaults to true.
Defaults to false.
*/
isUserVerified?: boolean;
/**
* Credentials created by this authenticator will have the backup
eligibility (BE) flag set to this value. Defaults to false.
https://w3c.github.io/webauthn/#sctn-credential-backup
*/
defaultBackupEligibility?: boolean;
/**
* Credentials created by this authenticator will have the backup state
(BS) flag set to this value. Defaults to false.
https://w3c.github.io/webauthn/#sctn-credential-backup
*/
defaultBackupState?: boolean;
}
export interface Credential {
credentialId: binary;
Expand Down Expand Up @@ -16093,6 +16153,14 @@ status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
filter out the ones that aren't necessary to the developers.
*/
export type PrefetchStatus = "PrefetchAllowed"|"PrefetchFailedIneligibleRedirect"|"PrefetchFailedInvalidRedirect"|"PrefetchFailedMIMENotSupported"|"PrefetchFailedNetError"|"PrefetchFailedNon2XX"|"PrefetchFailedPerPageLimitExceeded"|"PrefetchEvicted"|"PrefetchHeldback"|"PrefetchIneligibleRetryAfter"|"PrefetchIsPrivacyDecoy"|"PrefetchIsStale"|"PrefetchNotEligibleBrowserContextOffTheRecord"|"PrefetchNotEligibleDataSaverEnabled"|"PrefetchNotEligibleExistingProxy"|"PrefetchNotEligibleHostIsNonUnique"|"PrefetchNotEligibleNonDefaultStoragePartition"|"PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy"|"PrefetchNotEligibleSchemeIsNotHttps"|"PrefetchNotEligibleUserHasCookies"|"PrefetchNotEligibleUserHasServiceWorker"|"PrefetchNotEligibleBatterySaverEnabled"|"PrefetchNotEligiblePreloadingDisabled"|"PrefetchNotFinishedInTime"|"PrefetchNotStarted"|"PrefetchNotUsedCookiesChanged"|"PrefetchProxyNotAvailable"|"PrefetchResponseUsed"|"PrefetchSuccessfulButNotUsed"|"PrefetchNotUsedProbeFailed";
/**
* Information of headers to be displayed when the header mismatch occurred.
*/
export interface PrerenderMismatchedHeaders {
headerName: string;
initialValue?: string;
activationValue?: string;
}

/**
* Upsert. Currently, it is only emitted when a rule set added.
Expand Down Expand Up @@ -16139,6 +16207,7 @@ filter out the ones that aren't necessary to the developers.
that is incompatible with prerender and has caused the cancellation of the attempt.
*/
disallowedMojoInterface?: string;
mismatchedHeaders?: PrerenderMismatchedHeaders[];
}
/**
* Send a list of sources for all preloading attempts in a document.
Expand Down Expand Up @@ -16168,9 +16237,13 @@ whether this account has ever been used to sign in to this RP before.
*/
export type LoginState = "SignIn"|"SignUp";
/**
* Whether the dialog shown is an account chooser or an auto re-authentication dialog.
* The types of FedCM dialogs.
*/
export type DialogType = "AccountChooser"|"AutoReauthn"|"ConfirmIdpLogin";
export type DialogType = "AccountChooser"|"AutoReauthn"|"ConfirmIdpLogin"|"Error";
/**
* The buttons on the FedCM dialog.
*/
export type DialogButton = "ConfirmIdpLoginContinue"|"ErrorGotIt"|"ErrorMoreDetails";
/**
* Corresponds to IdentityRequestAccount
*/
Expand Down Expand Up @@ -16201,6 +16274,13 @@ RP context was used appropriately.
title: string;
subtitle?: string;
}
/**
* Triggered when a dialog is closed, either by user action, JS abort,
or a command below.
*/
export type dialogClosedPayload = {
dialogId: string;
}

export type enableParameters = {
/**
Expand All @@ -16222,14 +16302,11 @@ normally happen, if this is unimportant to what's being tested.
}
export type selectAccountReturnValue = {
}
/**
* Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had
clicked the continue button.
*/
export type confirmIdpLoginParameters = {
export type clickDialogButtonParameters = {
dialogId: string;
dialogButton: DialogButton;
}
export type confirmIdpLoginReturnValue = {
export type clickDialogButtonReturnValue = {
}
export type dismissDialogParameters = {
dialogId: string;
Expand Down Expand Up @@ -19044,6 +19121,7 @@ Error was thrown.
"Preload.prerenderStatusUpdated": Preload.prerenderStatusUpdatedPayload;
"Preload.preloadingAttemptSourcesUpdated": Preload.preloadingAttemptSourcesUpdatedPayload;
"FedCm.dialogShown": FedCm.dialogShownPayload;
"FedCm.dialogClosed": FedCm.dialogClosedPayload;
"Console.messageAdded": Console.messageAddedPayload;
"Debugger.breakpointResolved": Debugger.breakpointResolvedPayload;
"Debugger.paused": Debugger.pausedPayload;
Expand Down Expand Up @@ -19401,7 +19479,6 @@ Error was thrown.
"Page.getManifestIcons": Page.getManifestIconsParameters;
"Page.getAppId": Page.getAppIdParameters;
"Page.getAdScriptId": Page.getAdScriptIdParameters;
"Page.getCookies": Page.getCookiesParameters;
"Page.getFrameTree": Page.getFrameTreeParameters;
"Page.getLayoutMetrics": Page.getLayoutMetricsParameters;
"Page.getNavigationHistory": Page.getNavigationHistoryParameters;
Expand Down Expand Up @@ -19562,7 +19639,7 @@ Error was thrown.
"FedCm.enable": FedCm.enableParameters;
"FedCm.disable": FedCm.disableParameters;
"FedCm.selectAccount": FedCm.selectAccountParameters;
"FedCm.confirmIdpLogin": FedCm.confirmIdpLoginParameters;
"FedCm.clickDialogButton": FedCm.clickDialogButtonParameters;
"FedCm.dismissDialog": FedCm.dismissDialogParameters;
"FedCm.resetCooldown": FedCm.resetCooldownParameters;
"Console.clearMessages": Console.clearMessagesParameters;
Expand Down Expand Up @@ -19980,7 +20057,6 @@ Error was thrown.
"Page.getManifestIcons": Page.getManifestIconsReturnValue;
"Page.getAppId": Page.getAppIdReturnValue;
"Page.getAdScriptId": Page.getAdScriptIdReturnValue;
"Page.getCookies": Page.getCookiesReturnValue;
"Page.getFrameTree": Page.getFrameTreeReturnValue;
"Page.getLayoutMetrics": Page.getLayoutMetricsReturnValue;
"Page.getNavigationHistory": Page.getNavigationHistoryReturnValue;
Expand Down Expand Up @@ -20141,7 +20217,7 @@ Error was thrown.
"FedCm.enable": FedCm.enableReturnValue;
"FedCm.disable": FedCm.disableReturnValue;
"FedCm.selectAccount": FedCm.selectAccountReturnValue;
"FedCm.confirmIdpLogin": FedCm.confirmIdpLoginReturnValue;
"FedCm.clickDialogButton": FedCm.clickDialogButtonReturnValue;
"FedCm.dismissDialog": FedCm.dismissDialogReturnValue;
"FedCm.resetCooldown": FedCm.resetCooldownReturnValue;
"Console.clearMessages": Console.clearMessagesReturnValue;
Expand Down
Loading

0 comments on commit 7827838

Please sign in to comment.