Skip to content

Commit fda3cd3

Browse files
feat(webkit): roll to r2299 (#41048)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
1 parent bb8d775 commit fda3cd3

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

packages/playwright-core/browsers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"name": "webkit",
48-
"revision": "2298",
48+
"revision": "2299",
4949
"installByDefault": true,
5050
"revisionOverrides": {
5151
"mac14": "2251",

packages/playwright-core/src/server/webkit/protocol.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6402,6 +6402,10 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
64026402
* Coordinate system used by supplied coordinates.
64036403
*/
64046404
export type CoordinateSystem = "Viewport"|"Page";
6405+
/**
6406+
* Image format used to encode a captured snapshot.
6407+
*/
6408+
export type ImageFormat = "png"|"jpeg"|"webp";
64056409
/**
64066410
* Same-Site policy of a cookie.
64076411
*/
@@ -6996,10 +7000,18 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
69967000
* By default, screenshot is inflated by device scale factor to avoid blurry image. This flag disables it.
69977001
*/
69987002
omitDeviceScaleFactor?: boolean;
7003+
/**
7004+
* Image format of the resulting snapshot. Defaults to "png".
7005+
*/
7006+
format?: ImageFormat;
7007+
/**
7008+
* Compression quality from 0 to 100 (ignored for the "png" format). Defaults to 80.
7009+
*/
7010+
quality?: number;
69997011
}
70007012
export type snapshotRectReturnValue = {
70017013
/**
7002-
* Base64-encoded image data (PNG).
7014+
* Base64-encoded image data.
70037015
*/
70047016
dataURL: string;
70057017
}

0 commit comments

Comments
 (0)