diff --git a/src/client/page.ts b/src/client/page.ts index 0a1f1f118c741..9f1533c400ec5 100644 --- a/src/client/page.ts +++ b/src/client/page.ts @@ -579,8 +579,6 @@ export class Page extends ChannelOwner i await this._page._setFileChooserIntercepted(params.intercepted); } - async setWebSocketFramesReportingEnabledNoReply(params: channels.PageSetWebSocketFramesReportingEnabledNoReplyParams): Promise { - this._page._setWebSocketFramesReportingEnabled(params.enabled); - } - async keyboardDown(params: channels.PageKeyboardDownParams): Promise { await this._page.keyboard.down(params.key); } diff --git a/src/protocol/channels.ts b/src/protocol/channels.ts index a50f2bb3fc1d6..082b659db47d2 100644 --- a/src/protocol/channels.ts +++ b/src/protocol/channels.ts @@ -728,7 +728,6 @@ export interface PageChannel extends Channel { setDefaultNavigationTimeoutNoReply(params: PageSetDefaultNavigationTimeoutNoReplyParams, metadata?: Metadata): Promise; setDefaultTimeoutNoReply(params: PageSetDefaultTimeoutNoReplyParams, metadata?: Metadata): Promise; setFileChooserInterceptedNoReply(params: PageSetFileChooserInterceptedNoReplyParams, metadata?: Metadata): Promise; - setWebSocketFramesReportingEnabledNoReply(params: PageSetWebSocketFramesReportingEnabledNoReplyParams, metadata?: Metadata): Promise; addInitScript(params: PageAddInitScriptParams, metadata?: Metadata): Promise; close(params: PageCloseParams, metadata?: Metadata): Promise; emulateMedia(params: PageEmulateMediaParams, metadata?: Metadata): Promise; @@ -840,13 +839,6 @@ export type PageSetFileChooserInterceptedNoReplyOptions = { }; export type PageSetFileChooserInterceptedNoReplyResult = void; -export type PageSetWebSocketFramesReportingEnabledNoReplyParams = { - enabled: boolean, -}; -export type PageSetWebSocketFramesReportingEnabledNoReplyOptions = { - -}; -export type PageSetWebSocketFramesReportingEnabledNoReplyResult = void; export type PageAddInitScriptParams = { source: string, }; diff --git a/src/protocol/protocol.yml b/src/protocol/protocol.yml index 2e502c98804e0..64fcc4d3d936f 100644 --- a/src/protocol/protocol.yml +++ b/src/protocol/protocol.yml @@ -625,10 +625,6 @@ Page: parameters: intercepted: boolean - setWebSocketFramesReportingEnabledNoReply: - parameters: - enabled: boolean - addInitScript: parameters: source: string diff --git a/src/protocol/validator.ts b/src/protocol/validator.ts index 1d9a554a2387a..a6c46450ef698 100644 --- a/src/protocol/validator.ts +++ b/src/protocol/validator.ts @@ -330,9 +330,6 @@ export function createScheme(tChannel: (name: string) => Validator): Scheme { scheme.PageSetFileChooserInterceptedNoReplyParams = tObject({ intercepted: tBoolean, }); - scheme.PageSetWebSocketFramesReportingEnabledNoReplyParams = tObject({ - enabled: tBoolean, - }); scheme.PageAddInitScriptParams = tObject({ source: tString, }); diff --git a/src/server/frames.ts b/src/server/frames.ts index e89ef8aad565f..69c430688fb3a 100644 --- a/src/server/frames.ts +++ b/src/server/frames.ts @@ -359,16 +359,12 @@ export class FrameManager { } onWebSocketFrameSent(requestId: string, opcode: number, data: string) { - if (!this._page._webSocketFramesReportingEnabled) - return; const ws = this._webSockets.get(requestId); if (ws) ws.frameSent(opcode, data); } webSocketFrameReceived(requestId: string, opcode: number, data: string) { - if (!this._page._webSocketFramesReportingEnabled) - return; const ws = this._webSockets.get(requestId); if (ws) ws.frameReceived(opcode, data); diff --git a/src/server/page.ts b/src/server/page.ts index 41d341e3c610e..629ff99123383 100644 --- a/src/server/page.ts +++ b/src/server/page.ts @@ -147,7 +147,6 @@ export class Page extends EventEmitter { _ownedContext: BrowserContext | undefined; readonly selectors: Selectors; _video: Video | null = null; - _webSocketFramesReportingEnabled = false; constructor(delegate: PageDelegate, browserContext: BrowserContext) { super(); @@ -441,10 +440,6 @@ export class Page extends EventEmitter { await this._delegate.setFileChooserIntercepted(enabled); } - _setWebSocketFramesReportingEnabled(enabled: boolean) { - this._webSocketFramesReportingEnabled = enabled; - } - videoStarted(video: Video) { this._video = video; this.emit(Page.Events.VideoStarted, video);