Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/playwright-core/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
{
"name": "webkit",
"revision": "2242",
"revision": "2245",
"installByDefault": true,
"revisionOverrides": {
"debian11-x64": "2105",
Expand Down
49 changes: 32 additions & 17 deletions packages/playwright-core/src/server/webkit/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2076,6 +2076,10 @@ export namespace Protocol {
* Show labels for grid area names. If not specified, the default value is false.
*/
showAreaNames?: boolean;
/**
* Show labels for grid item order. If not specified, the default value is false.
*/
showOrderNumbers?: boolean;
}
/**
* Configuration data for flex overlays.
Expand Down Expand Up @@ -2175,8 +2179,7 @@ export namespace Protocol {
* The native width of the video track in CSS pixels
*/
width: number;
spatialVideoMetadata?: SpatialVideoMetadata;
videoProjectionMetadata?: VideoProjectionMetadata;
immersiveVideoMetadata?: ImmersiveVideoMetadata;
/**
* Whether the track contains protected contents
*/
Expand Down Expand Up @@ -2223,35 +2226,30 @@ export namespace Protocol {
/**
* A structure containing metadata describing spatial video properties.
*/
export interface SpatialVideoMetadata {
export interface ImmersiveVideoMetadata {
/**
* The kind of immersive video.
*/
kind: VideoProjectionMetadataKind;
width: number;
height: number;
/**
* The horizontal field-of-view measurement, in degrees
*/
horizontalFOVDegrees: number;
horizontalFieldOfView?: number;
/**
* The distance between the centers of the lenses in a camera system, in micrometers
*/
baseline: number;
stereoCameraBaseline?: number;
/**
* The relative shift of the left and right eye images, as a percentage.
* The relative shift of the left and right eye images, as a percentage
*/
disparityAdjustment: number;
horizontalDisparityAdjustment?: number;
}
/**
* Video Projection Metadata Kind.
*/
export type VideoProjectionMetadataKind = "unknown"|"equirectangular"|"half-equirectangular"|"equi-angular-cubemap"|"parametric"|"pyramid"|"apple-immersive-video";
/**
* A structure containing metadata describing video projections.
*/
export interface VideoProjectionMetadata {
/**
* The kind of video projection.
*/
kind: VideoProjectionMetadataKind;
}
export type VideoProjectionMetadataKind = "unknown"|"rectilinear"|"equirectangular"|"half-equirectangular"|"equi-angular-cubemap"|"parametric"|"pyramid"|"apple-immersive-video";
export interface ViewportSize {
width: number;
height: number;
Expand Down Expand Up @@ -5334,6 +5332,21 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
*/
compositingReasons: CompositingReasons;
}
/**
* Captures a snapshot of the layer's rendered content as a PNG data URL.
*/
export type requestContentParameters = {
/**
* The id of the layer to snapshot.
*/
layerId: LayerId;
}
export type requestContentReturnValue = {
/**
* Base64-encoded PNG data URL of the layer's rendered content.
*/
content: string;
}
}

/**
Expand Down Expand Up @@ -9343,6 +9356,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"LayerTree.disable": LayerTree.disableParameters;
"LayerTree.layersForNode": LayerTree.layersForNodeParameters;
"LayerTree.reasonsForCompositingLayer": LayerTree.reasonsForCompositingLayerParameters;
"LayerTree.requestContent": LayerTree.requestContentParameters;
"Memory.enable": Memory.enableParameters;
"Memory.disable": Memory.disableParameters;
"Memory.startTracking": Memory.startTrackingParameters;
Expand Down Expand Up @@ -9646,6 +9660,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"LayerTree.disable": LayerTree.disableReturnValue;
"LayerTree.layersForNode": LayerTree.layersForNodeReturnValue;
"LayerTree.reasonsForCompositingLayer": LayerTree.reasonsForCompositingLayerReturnValue;
"LayerTree.requestContent": LayerTree.requestContentReturnValue;
"Memory.enable": Memory.enableReturnValue;
"Memory.disable": Memory.disableReturnValue;
"Memory.startTracking": Memory.startTrackingReturnValue;
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-core/src/server/webkit/wkPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import type * as types from '../types';

const UTILITY_WORLD_NAME = '__playwright_utility_world__';

const enableFrameSessions = !!process.env.WK_ENABLE_FRAME_SESSIONS;
const enableFrameSessions = !process.env.WK_DISABLE_FRAME_SESSIONS;

export class WKPage implements PageDelegate {
readonly rawMouse: RawMouseImpl;
Expand Down
Loading