mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	chore: remove unused fields from wk network (#28455)
This commit is contained in:
		
							parent
							
								
									b166189247
								
							
						
					
					
						commit
						607a243380
					
				| @ -47,13 +47,11 @@ export class WKInterceptableRequest { | |||||||
|   _timestamp: number; |   _timestamp: number; | ||||||
|   _wallTime: number; |   _wallTime: number; | ||||||
|   readonly _route: WKRouteImpl | null; |   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) { |   constructor(session: WKSession, route: WKRouteImpl | null, frame: frames.Frame, event: Protocol.Network.requestWillBeSentPayload, redirectedFrom: WKInterceptableRequest | null, documentId: string | undefined) { | ||||||
|     this._session = session; |     this._session = session; | ||||||
|     this._requestId = event.requestId; |     this._requestId = event.requestId; | ||||||
|     this._route = route; |     this._route = route; | ||||||
|     this._redirectedFrom = redirectedFrom; |  | ||||||
|     const resourceType = event.type ? event.type.toLowerCase() : (redirectedFrom ? redirectedFrom.request.resourceType() : 'other'); |     const resourceType = event.type ? event.type.toLowerCase() : (redirectedFrom ? redirectedFrom.request.resourceType() : 'other'); | ||||||
|     let postDataBuffer = null; |     let postDataBuffer = null; | ||||||
|     this._timestamp = event.timestamp; |     this._timestamp = event.timestamp; | ||||||
|  | |||||||
| @ -62,7 +62,6 @@ export class WKPage implements PageDelegate { | |||||||
|   private readonly _requestIdToRequest = new Map<string, WKInterceptableRequest>(); |   private readonly _requestIdToRequest = new Map<string, WKInterceptableRequest>(); | ||||||
|   private readonly _workers: WKWorkers; |   private readonly _workers: WKWorkers; | ||||||
|   private readonly _contextIdToContext: Map<number, dom.FrameExecutionContext>; |   private readonly _contextIdToContext: Map<number, dom.FrameExecutionContext>; | ||||||
|   private _mainFrameContextId?: number; |  | ||||||
|   private _sessionListeners: RegisteredListener[] = []; |   private _sessionListeners: RegisteredListener[] = []; | ||||||
|   private _eventListeners: RegisteredListener[]; |   private _eventListeners: RegisteredListener[]; | ||||||
|   readonly _browserContext: WKBrowserContext; |   readonly _browserContext: WKBrowserContext; | ||||||
| @ -510,8 +509,6 @@ export class WKPage implements PageDelegate { | |||||||
|     (context as any)[contextDelegateSymbol] = delegate; |     (context as any)[contextDelegateSymbol] = delegate; | ||||||
|     if (worldName) |     if (worldName) | ||||||
|       frame._contextCreated(worldName, context); |       frame._contextCreated(worldName, context); | ||||||
|     if (contextPayload.type === 'normal' && frame === this._page.mainFrame()) |  | ||||||
|       this._mainFrameContextId = contextPayload.id; |  | ||||||
|     this._contextIdToContext.set(contextPayload.id, context); |     this._contextIdToContext.set(contextPayload.id, context); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Yury Semikhatsky
						Yury Semikhatsky