Skip to content

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

feat(webkit): roll to r1706 (#16659)

Playwright Service5282edca7c87
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;