chore: remove unused fields from wk network (#28455)

This commit is contained in:
Yury Semikhatsky 2023-12-01 14:51:41 -08:00 committed by GitHub
parent b166189247
commit 607a243380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -47,13 +47,11 @@ export class WKInterceptableRequest {
_timestamp: number;
_wallTime: number;
readonly _route: WKRouteImpl | null;
private _redirectedFrom: WKInterceptableRequest | null;
constructor(session: WKSession, route: WKRouteImpl | null, frame: frames.Frame, event: Protocol.Network.requestWillBeSentPayload, redirectedFrom: WKInterceptableRequest | null, documentId: string | undefined) {
this._session = session;
this._requestId = event.requestId;
this._route = route;
this._redirectedFrom = redirectedFrom;
const resourceType = event.type ? event.type.toLowerCase() : (redirectedFrom ? redirectedFrom.request.resourceType() : 'other');
let postDataBuffer = null;
this._timestamp = event.timestamp;

View File

@ -62,7 +62,6 @@ export class WKPage implements PageDelegate {
private readonly _requestIdToRequest = new Map<string, WKInterceptableRequest>();
private readonly _workers: WKWorkers;
private readonly _contextIdToContext: Map<number, dom.FrameExecutionContext>;
private _mainFrameContextId?: number;
private _sessionListeners: RegisteredListener[] = [];
private _eventListeners: RegisteredListener[];
readonly _browserContext: WKBrowserContext;
@ -510,8 +509,6 @@ export class WKPage implements PageDelegate {
(context as any)[contextDelegateSymbol] = delegate;
if (worldName)
frame._contextCreated(worldName, context);
if (contextPayload.type === 'normal' && frame === this._page.mainFrame())
this._mainFrameContextId = contextPayload.id;
this._contextIdToContext.set(contextPayload.id, context);
}