diff --git a/src/webkit/wkConnection.ts b/src/webkit/wkConnection.ts index 6092d1dc03..3bfec31d98 100644 --- a/src/webkit/wkConnection.ts +++ b/src/webkit/wkConnection.ts @@ -45,10 +45,6 @@ export class WKConnection extends EventEmitter { this._transport.onclose = this._onClose.bind(this); } - static fromSession(session: WKTargetSession): WKConnection { - return session._connection; - } - send( method: T, params?: Protocol.CommandParameters[T] @@ -150,7 +146,7 @@ export const WKTargetSessionEvents = { }; export class WKTargetSession extends EventEmitter { - _connection: WKConnection; + private _connection: WKConnection; private _callbacks = new Map void, reject: (e: Error) => void, error: Error, method: string}>(); private _targetType: string; _sessionId: string;