feat(webkit): roll to r1472 (#6425)

This commit is contained in:
Pavel Feldman 2021-05-05 15:35:10 -07:00 committed by GitHub
parent 477b93b1fe
commit 791443d71f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 11 deletions

View file

@ -18,7 +18,7 @@
}, },
{ {
"name": "webkit", "name": "webkit",
"revision": "1468", "revision": "1472",
"installByDefault": true, "installByDefault": true,
"revisionOverrides": { "revisionOverrides": {
"mac10.14": "1443" "mac10.14": "1443"

View file

@ -8031,11 +8031,19 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
*/ */
export type ScreencastId = string; export type ScreencastId = string;
export type screencastFramePayload = {
/**
* Base64 data
*/
data: string;
deviceWidth: number;
deviceHeight: number;
}
/** /**
* Starts recoring video to speified file. * Starts recoring video to speified file.
*/ */
export type startParameters = { export type startVideoParameters = {
/** /**
* Output file location. * Output file location.
*/ */
@ -8044,7 +8052,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
height: number; height: number;
scale?: number; scale?: number;
} }
export type startReturnValue = { export type startVideoReturnValue = {
/** /**
* Unique identifier of the screencast. * Unique identifier of the screencast.
*/ */
@ -8053,9 +8061,38 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
/** /**
* Stops recoding video. Returns after the file has been closed. * Stops recoding video. Returns after the file has been closed.
*/ */
export type stopParameters = { export type stopVideoParameters = {
} }
export type stopReturnValue = { export type stopVideoReturnValue = {
}
/**
* Starts screencast.
*/
export type startScreencastParameters = {
width: number;
height: number;
quality: number;
}
export type startScreencastReturnValue = {
/**
* Screencast session generation.
*/
generation: number;
}
/**
* Stops screencast.
*/
export type stopScreencastParameters = {
}
export type stopScreencastReturnValue = {
}
export type screencastFrameAckParameters = {
/**
* Screencast session generation
*/
generation: number;
}
export type screencastFrameAckReturnValue = {
} }
} }
@ -8612,6 +8649,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Playwright.downloadFinished": Playwright.downloadFinishedPayload; "Playwright.downloadFinished": Playwright.downloadFinishedPayload;
"Playwright.screencastFinished": Playwright.screencastFinishedPayload; "Playwright.screencastFinished": Playwright.screencastFinishedPayload;
"Runtime.executionContextCreated": Runtime.executionContextCreatedPayload; "Runtime.executionContextCreated": Runtime.executionContextCreatedPayload;
"Screencast.screencastFrame": Screencast.screencastFramePayload;
"ScriptProfiler.trackingStart": ScriptProfiler.trackingStartPayload; "ScriptProfiler.trackingStart": ScriptProfiler.trackingStartPayload;
"ScriptProfiler.trackingUpdate": ScriptProfiler.trackingUpdatePayload; "ScriptProfiler.trackingUpdate": ScriptProfiler.trackingUpdatePayload;
"ScriptProfiler.trackingComplete": ScriptProfiler.trackingCompletePayload; "ScriptProfiler.trackingComplete": ScriptProfiler.trackingCompletePayload;
@ -8895,8 +8933,11 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Runtime.enableControlFlowProfiler": Runtime.enableControlFlowProfilerParameters; "Runtime.enableControlFlowProfiler": Runtime.enableControlFlowProfilerParameters;
"Runtime.disableControlFlowProfiler": Runtime.disableControlFlowProfilerParameters; "Runtime.disableControlFlowProfiler": Runtime.disableControlFlowProfilerParameters;
"Runtime.getBasicBlocks": Runtime.getBasicBlocksParameters; "Runtime.getBasicBlocks": Runtime.getBasicBlocksParameters;
"Screencast.start": Screencast.startParameters; "Screencast.startVideo": Screencast.startVideoParameters;
"Screencast.stop": Screencast.stopParameters; "Screencast.stopVideo": Screencast.stopVideoParameters;
"Screencast.startScreencast": Screencast.startScreencastParameters;
"Screencast.stopScreencast": Screencast.stopScreencastParameters;
"Screencast.screencastFrameAck": Screencast.screencastFrameAckParameters;
"ScriptProfiler.startTracking": ScriptProfiler.startTrackingParameters; "ScriptProfiler.startTracking": ScriptProfiler.startTrackingParameters;
"ScriptProfiler.stopTracking": ScriptProfiler.stopTrackingParameters; "ScriptProfiler.stopTracking": ScriptProfiler.stopTrackingParameters;
"ServiceWorker.getInitializationInfo": ServiceWorker.getInitializationInfoParameters; "ServiceWorker.getInitializationInfo": ServiceWorker.getInitializationInfoParameters;
@ -9184,8 +9225,11 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Runtime.enableControlFlowProfiler": Runtime.enableControlFlowProfilerReturnValue; "Runtime.enableControlFlowProfiler": Runtime.enableControlFlowProfilerReturnValue;
"Runtime.disableControlFlowProfiler": Runtime.disableControlFlowProfilerReturnValue; "Runtime.disableControlFlowProfiler": Runtime.disableControlFlowProfilerReturnValue;
"Runtime.getBasicBlocks": Runtime.getBasicBlocksReturnValue; "Runtime.getBasicBlocks": Runtime.getBasicBlocksReturnValue;
"Screencast.start": Screencast.startReturnValue; "Screencast.startVideo": Screencast.startVideoReturnValue;
"Screencast.stop": Screencast.stopReturnValue; "Screencast.stopVideo": Screencast.stopVideoReturnValue;
"Screencast.startScreencast": Screencast.startScreencastReturnValue;
"Screencast.stopScreencast": Screencast.stopScreencastReturnValue;
"Screencast.screencastFrameAck": Screencast.screencastFrameAckReturnValue;
"ScriptProfiler.startTracking": ScriptProfiler.startTrackingReturnValue; "ScriptProfiler.startTracking": ScriptProfiler.startTrackingReturnValue;
"ScriptProfiler.stopTracking": ScriptProfiler.stopTrackingReturnValue; "ScriptProfiler.stopTracking": ScriptProfiler.stopTrackingReturnValue;
"ServiceWorker.getInitializationInfo": ServiceWorker.getInitializationInfoReturnValue; "ServiceWorker.getInitializationInfo": ServiceWorker.getInitializationInfoReturnValue;

View file

@ -737,7 +737,7 @@ export class WKPage implements PageDelegate {
async _startScreencast(options: types.PageScreencastOptions): Promise<void> { async _startScreencast(options: types.PageScreencastOptions): Promise<void> {
assert(!this._recordingVideoFile); assert(!this._recordingVideoFile);
const { screencastId } = await this._pageProxySession.send('Screencast.start', { const { screencastId } = await this._pageProxySession.send('Screencast.startVideo', {
file: options.outputFile, file: options.outputFile,
width: options.width, width: options.width,
height: options.height, height: options.height,
@ -749,7 +749,7 @@ export class WKPage implements PageDelegate {
async _stopScreencast(): Promise<void> { async _stopScreencast(): Promise<void> {
if (!this._recordingVideoFile) if (!this._recordingVideoFile)
return; return;
await this._pageProxySession.sendMayFail('Screencast.stop'); await this._pageProxySession.sendMayFail('Screencast.stopVideo');
this._recordingVideoFile = null; this._recordingVideoFile = null;
} }