@@ -83,7 +83,7 @@ export class Chromium extends BrowserType {
8383 return await this . _connectOverCDPInternal ( progress , params . endpointURL ! , params ) ;
8484 }
8585
86- async _connectOverCDPInternal ( progress : Progress , endpointURL : string , options : types . LaunchOptions & { headers ?: types . HeadersArray , isLocal ?: boolean , noDefaults ?: boolean , isWebView ?: boolean , artifactsDir ?: string } , onClose ?: ( ) => Promise < void > ) {
86+ async _connectOverCDPInternal ( progress : Progress , endpointURL : string , options : types . LaunchOptions & { headers ?: types . HeadersArray , isLocal ?: boolean , noDefaults ?: boolean , isWebView ?: boolean , maxPageAttachTime ?: number , artifactsDir ?: string } , onClose ?: ( ) => Promise < void > ) {
8787 let headersMap : { [ key : string ] : string ; } | undefined ;
8888 if ( options . headers )
8989 headersMap = headersArrayToObject ( options . headers , false ) ;
@@ -111,7 +111,7 @@ export class Chromium extends BrowserType {
111111 return this . _connectOverCDPImpl ( progress , chromeTransport , closeAndWait , options , onClose ) ;
112112 }
113113
114- private async _connectOverCDPImpl ( progress : Progress , transport : ConnectionTransport , closeAndWait : ( ) => Promise < void > , options : types . LaunchOptions & { isLocal ?: boolean , noDefaults ?: boolean , isWebView ?: boolean , artifactsDir ?: string } , onClose ?: ( ) => Promise < void > ) {
114+ private async _connectOverCDPImpl ( progress : Progress , transport : ConnectionTransport , closeAndWait : ( ) => Promise < void > , options : types . LaunchOptions & { isLocal ?: boolean , noDefaults ?: boolean , isWebView ?: boolean , maxPageAttachTime ?: number , artifactsDir ?: string } , onClose ?: ( ) => Promise < void > ) {
115115 let artifactsDir : string ;
116116 const tempDirectories : string [ ] = [ ] ;
117117 if ( options . artifactsDir ) {
@@ -152,6 +152,7 @@ export class Chromium extends BrowserType {
152152 originalLaunchOptions : { } ,
153153 noDefaults : options . noDefaults ,
154154 isWebView : options . isWebView ,
155+ maxPageAttachTime : options . maxPageAttachTime ,
155156 } ;
156157 validateBrowserContextOptions ( persistent , browserOptions ) ;
157158 const browser = await progress . race ( CRBrowser . connect ( this . attribution . playwright , transport , browserOptions ) ) ;
0 commit comments