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 @@ -24,7 +24,7 @@
},
{
"name": "webkit",
"revision": "2346",
"revision": "2349",
"installByDefault": true,
"revisionOverrides": {
"mac14": "2251",
Expand Down
64 changes: 38 additions & 26 deletions packages/playwright-core/src/server/webkit/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,10 +1173,6 @@ export namespace Protocol {
*/
contextType: ContextType;
sizes?: GenericTypes.Size[];
/**
* The corresponding DOM node id.
*/
nodeId?: DOM.NodeId;
/**
* The CSS canvas identifiers, for canvases created with <code>document.getCSSCanvasContext</code>.
*/
Expand All @@ -1190,7 +1186,7 @@ export namespace Protocol {
*/
features?: string[];
/**
* Memory usage of the canvas in bytes.
* Estimated memory usage of the graphics context and its associated resources, in bytes.
*/
memoryCost?: number;
/**
Expand Down Expand Up @@ -1238,7 +1234,7 @@ export namespace Protocol {
*/
canvasId: CanvasId;
/**
* New memory cost value for the canvas in bytes.
* New estimated memory cost of the graphics context and its associated resources, in bytes.
*/
memoryCost: number;
}
Expand All @@ -1249,11 +1245,27 @@ export namespace Protocol {
*/
extension: string;
}
export type clientNodesChangedPayload = {
export type nodesChangedPayload = {
/**
* Identifier of canvas that changed.
*/
canvasId: CanvasId;
}
export type cssCanvasClientNodesChangedPayload = {
/**
* Identifier of canvas that changed.
*/
canvasId: CanvasId;
}
export type cssCanvasNamesChangedPayload = {
/**
* Identifier of canvas that changed.
*/
canvasId: CanvasId;
/**
* The CSS canvas identifiers, for canvases created with <code>document.getCSSCanvasContext</code>.
*/
cssCanvasNames: string[];
}
export type recordingStartedPayload = {
canvasId: CanvasId;
Expand Down Expand Up @@ -1293,19 +1305,19 @@ export namespace Protocol {
export type disableReturnValue = {
}
/**
* Gets the NodeId for the canvas node with the given CanvasId.
* Gets the NodeIds for the canvas nodes with the given CanvasId.
*/
export type requestNodeParameters = {
export type requestNodesParameters = {
/**
* Canvas identifier.
*/
canvasId: CanvasId;
}
export type requestNodeReturnValue = {
export type requestNodesReturnValue = {
/**
* Node identifier for given canvas.
* Node identifiers for the given canvas.
*/
nodeId: DOM.NodeId;
nodeIds: DOM.NodeId[];
}
/**
* Gets the data for the canvas node with the given CanvasId.
Expand All @@ -1323,17 +1335,13 @@ export namespace Protocol {
content: string;
}
/**
* Gets all <code>-webkit-canvas</code> nodes or active <code>HTMLCanvasElement</code> for a <code>WebGPUDevice</code>.
* Gets all nodes using a <code>-webkit-canvas</code> image associated with the given CanvasId.
*/
export type requestClientNodesParameters = {
export type requestCSSCanvasClientNodesParameters = {
canvasId: CanvasId;
}
export type requestClientNodesReturnValue = {
export type requestCSSCanvasClientNodesReturnValue = {
clientNodeIds: DOM.NodeId[];
/**
* The CSS canvas identifiers, for canvases created with <code>document.getCSSCanvasContext</code>.
*/
cssCanvasNames: string[];
}
/**
* Resolves JavaScript canvas/device context object for given canvasId.
Expand Down Expand Up @@ -7675,7 +7683,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
*/
export interface Frame {
/**
* Information about an action made to the recorded object. Follows the structure [name, parameters, swizzleTypes, stackTrace, receiver, snapshot], where name is a string, parameters is an array, swizzleTypes is an array, stackTrace is a Console.StackTrace, receiver follows the structure [identifier, swizzleType] for the object that received the action, and snapshot is a data URL image of the current contents after this action.
* Information about an action made to the recorded object. Follows the structure [name, parameters, swizzleTypes, stackTrace, result, receiver, snapshot], where name is a string, parameters is an array, swizzleTypes is an array, stackTrace is a Console.StackTrace, result and receiver follow the structure [identifier, swizzleType] for the object returned by the action and the object that received it, respectively, and snapshot is a data URL image of the current contents after this action.
*/
actions: any[];
/**
Expand Down Expand Up @@ -9199,7 +9207,9 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Canvas.canvasSizeChanged": Canvas.canvasSizeChangedPayload;
"Canvas.canvasMemoryChanged": Canvas.canvasMemoryChangedPayload;
"Canvas.extensionEnabled": Canvas.extensionEnabledPayload;
"Canvas.clientNodesChanged": Canvas.clientNodesChangedPayload;
"Canvas.nodesChanged": Canvas.nodesChangedPayload;
"Canvas.cssCanvasClientNodesChanged": Canvas.cssCanvasClientNodesChangedPayload;
"Canvas.cssCanvasNamesChanged": Canvas.cssCanvasNamesChangedPayload;
"Canvas.recordingStarted": Canvas.recordingStartedPayload;
"Canvas.recordingProgress": Canvas.recordingProgressPayload;
"Canvas.recordingFinished": Canvas.recordingFinishedPayload;
Expand Down Expand Up @@ -9327,7 +9337,9 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
["Canvas.canvasSizeChanged"]: [Canvas.canvasSizeChangedPayload];
["Canvas.canvasMemoryChanged"]: [Canvas.canvasMemoryChangedPayload];
["Canvas.extensionEnabled"]: [Canvas.extensionEnabledPayload];
["Canvas.clientNodesChanged"]: [Canvas.clientNodesChangedPayload];
["Canvas.nodesChanged"]: [Canvas.nodesChangedPayload];
["Canvas.cssCanvasClientNodesChanged"]: [Canvas.cssCanvasClientNodesChangedPayload];
["Canvas.cssCanvasNamesChanged"]: [Canvas.cssCanvasNamesChangedPayload];
["Canvas.recordingStarted"]: [Canvas.recordingStartedPayload];
["Canvas.recordingProgress"]: [Canvas.recordingProgressPayload];
["Canvas.recordingFinished"]: [Canvas.recordingFinishedPayload];
Expand Down Expand Up @@ -9467,9 +9479,9 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"CSS.setLayoutContextTypeChangedMode": CSS.setLayoutContextTypeChangedModeParameters;
"Canvas.enable": Canvas.enableParameters;
"Canvas.disable": Canvas.disableParameters;
"Canvas.requestNode": Canvas.requestNodeParameters;
"Canvas.requestNodes": Canvas.requestNodesParameters;
"Canvas.requestContent": Canvas.requestContentParameters;
"Canvas.requestClientNodes": Canvas.requestClientNodesParameters;
"Canvas.requestCSSCanvasClientNodes": Canvas.requestCSSCanvasClientNodesParameters;
"Canvas.resolveContext": Canvas.resolveContextParameters;
"Canvas.setRecordingAutoCaptureFrameCount": Canvas.setRecordingAutoCaptureFrameCountParameters;
"Canvas.startRecording": Canvas.startRecordingParameters;
Expand Down Expand Up @@ -9777,9 +9789,9 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"CSS.setLayoutContextTypeChangedMode": CSS.setLayoutContextTypeChangedModeReturnValue;
"Canvas.enable": Canvas.enableReturnValue;
"Canvas.disable": Canvas.disableReturnValue;
"Canvas.requestNode": Canvas.requestNodeReturnValue;
"Canvas.requestNodes": Canvas.requestNodesReturnValue;
"Canvas.requestContent": Canvas.requestContentReturnValue;
"Canvas.requestClientNodes": Canvas.requestClientNodesReturnValue;
"Canvas.requestCSSCanvasClientNodes": Canvas.requestCSSCanvasClientNodesReturnValue;
"Canvas.resolveContext": Canvas.resolveContextReturnValue;
"Canvas.setRecordingAutoCaptureFrameCount": Canvas.setRecordingAutoCaptureFrameCountReturnValue;
"Canvas.startRecording": Canvas.startRecordingReturnValue;
Expand Down
Loading