From 5282edca7c8760b4431153efe0b2d3ed8de7342e Mon Sep 17 00:00:00 2001 From: Playwright Service <89237858+playwrightmachine@users.noreply.github.com> Date: Thu, 18 Aug 2022 22:42:58 -0700 Subject: [PATCH] feat(webkit): roll to r1706 (#16659) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- packages/playwright-core/browsers.json | 2 +- .../src/server/webkit/protocol.d.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json index 8287930657..abf3f79222 100644 --- a/packages/playwright-core/browsers.json +++ b/packages/playwright-core/browsers.json @@ -33,7 +33,7 @@ }, { "name": "webkit", - "revision": "1705", + "revision": "1706", "installByDefault": true, "revisionOverrides": { "mac10.14": "1446", diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.ts index aa947ddd30..07ac05f4aa 100644 --- a/packages/playwright-core/src/server/webkit/protocol.d.ts +++ b/packages/playwright-core/src/server/webkit/protocol.d.ts @@ -6156,6 +6156,10 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the * Page reduced-motion media query override. */ export type ReducedMotion = "Reduce"|"NoPreference"; + /** + * Page forced-colors media query override. + */ + export type ForcedColors = "Active"|"None"; /** * Information about the Frame on the page. */ @@ -6840,6 +6844,14 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the } export type setForcedReducedMotionReturnValue = { } + /** + * Forces the forced-colors media query for the page. + */ + export type setForcedColorsParameters = { + forcedColors?: ForcedColors; + } + export type setForcedColorsReturnValue = { + } /** * Enables time zone emulation. */ @@ -9196,6 +9208,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "Page.setEmulatedMedia": Page.setEmulatedMediaParameters; "Page.setForcedAppearance": Page.setForcedAppearanceParameters; "Page.setForcedReducedMotion": Page.setForcedReducedMotionParameters; + "Page.setForcedColors": Page.setForcedColorsParameters; "Page.setTimeZone": Page.setTimeZoneParameters; "Page.setTouchEmulationEnabled": Page.setTouchEmulationEnabledParameters; "Page.snapshotNode": Page.snapshotNodeParameters; @@ -9502,6 +9515,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "Page.setEmulatedMedia": Page.setEmulatedMediaReturnValue; "Page.setForcedAppearance": Page.setForcedAppearanceReturnValue; "Page.setForcedReducedMotion": Page.setForcedReducedMotionReturnValue; + "Page.setForcedColors": Page.setForcedColorsReturnValue; "Page.setTimeZone": Page.setTimeZoneReturnValue; "Page.setTouchEmulationEnabled": Page.setTouchEmulationEnabledReturnValue; "Page.snapshotNode": Page.snapshotNodeReturnValue;