Tests that Network.requestWillBeSent is dispatched for speculation-rule base prefetch requests. Message 0 Network.onRequestWillBeSent { documentURL : frameId : hasUserGesture : false initiator : { type : other } loaderId : redirectHasExtraInfo : false request : { headers : { Accept-Language : en-us,en;q=0.9 Upgrade-Insecure-Requests : 1 User-Agent : sec-ch-ua : "content_shell";v="999" sec-ch-ua-mobile : ?0 sec-ch-ua-platform : "Unknown" } initialPriority : VeryHigh isSameSite : true method : GET mixedContentType : none referrerPolicy : strict-origin-when-cross-origin url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html } requestId : timestamp : type : Document wallTime : } Network.onRequestWillBeSentExtraInfo { associatedCookies : [ ] connectTiming : { requestTime : } headers : { Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Accept-Encoding : gzip, deflate, br, zstd Accept-Language : en-us,en;q=0.9 Connection : keep-alive Host : 127.0.0.1:8443 Sec-Fetch-Dest : document Sec-Fetch-Mode : navigate Sec-Fetch-Site : none Sec-Fetch-User : ?1 Upgrade-Insecure-Requests : 1 User-Agent : sec-ch-ua : "content_shell";v="999" sec-ch-ua-mobile : ?0 sec-ch-ua-platform : "Unknown" } requestId : siteHasCookieInOtherPartition : false } Network.onResponseReceived { frameId : hasExtraInfo : true loaderId : requestId : response : { alternateProtocolUsage : unspecifiedReason charset : connectionId : 17 connectionReused : true encodedDataLength : 261 fromDiskCache : false fromPrefetchCache : false fromServiceWorker : false headers : { Accept-Ranges : bytes Connection : Keep-Alive Content-Length : 474 Content-Type : text/html Date : ETag : Keep-Alive : timeout=10 Last-Modified : Server : Apache } mimeType : text/html protocol : http/1.1 remoteIPAddress : 127.0.0.1 remotePort : 8443 responseTime : securityDetails : { certificateId : 0 certificateTransparencyCompliance : unknown cipher : AES_128_GCM encryptedClientHello : false issuer : keyExchange : keyExchangeGroup : X25519 protocol : TLS 1.3 sanList : [ ] serverSignatureAlgorithm : 2052 signedCertificateTimestampList : [ ] subjectName : validFrom : 1542841725 validTo : 1858201725 } securityState : secure status : 200 statusText : OK timing : { connectEnd : -1 connectStart : -1 dnsEnd : -1 dnsStart : -1 proxyEnd : -1 proxyStart : -1 pushEnd : 0 pushStart : 0 receiveHeadersEnd : receiveHeadersStart : requestTime : sendEnd : sendStart : sslEnd : -1 sslStart : -1 workerFetchStart : -1 workerReady : -1 workerRespondWithSettled : -1 workerStart : -1 } url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html } timestamp : type : Document } Network.onResponseReceivedExtraInfo { blockedCookies : [ ] cookiePartitionKey : { hasCrossSiteAncestor : false topLevelSite : https://127.0.0.1 } cookiePartitionKeyOpaque : false exemptedCookies : [ ] headers : { Accept-Ranges : bytes Connection : Keep-Alive Content-Length : 474 Content-Type : text/html Date : ETag : Keep-Alive : timeout=10 Last-Modified : Server : Apache } headersText : requestId : resourceIPAddressSpace : Loopback statusCode : 200 } Network.onLoadingFinished { encodedDataLength : 735 requestId : timestamp : } Message 1 Network.onRequestWillBeSent { documentURL : frameId : hasUserGesture : false initiator : { type : script url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html } loaderId : redirectHasExtraInfo : false request : { headers : { Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Referer : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html Sec-Purpose : prefetch Sec-Speculation-Tags : null Upgrade-Insecure-Requests : 1 sec-ch-ua : "content_shell";v="999" sec-ch-ua-mobile : ?0 sec-ch-ua-platform : "Unknown" } initialPriority : VeryLow method : GET referrerPolicy : strict-origin-when-cross-origin url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html?page=2 } requestId : timestamp : type : Prefetch wallTime : } Network.onRequestWillBeSentExtraInfo { associatedCookies : [ ] connectTiming : { requestTime : } headers : { Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Accept-Encoding : gzip, deflate, br, zstd Accept-Language : en-us,en Connection : keep-alive Host : 127.0.0.1:8443 Referer : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html Sec-Fetch-Dest : document Sec-Fetch-Mode : navigate Sec-Fetch-Site : none Sec-Purpose : prefetch Sec-Speculation-Tags : null Upgrade-Insecure-Requests : 1 User-Agent : sec-ch-ua : "content_shell";v="999" sec-ch-ua-mobile : ?0 sec-ch-ua-platform : "Unknown" } requestId : siteHasCookieInOtherPartition : false } Network.onResponseReceived { frameId : hasExtraInfo : true loaderId : requestId : response : { alternateProtocolUsage : unspecifiedReason charset : connectionId : 17 connectionReused : true encodedDataLength : 261 fromDiskCache : false fromPrefetchCache : true fromServiceWorker : false headers : { Accept-Ranges : bytes Connection : Keep-Alive Content-Length : 474 Content-Type : text/html Date : ETag : Keep-Alive : timeout=10 Last-Modified : Server : Apache } mimeType : text/html protocol : http/1.1 remoteIPAddress : 127.0.0.1 remotePort : 8443 responseTime : securityDetails : { certificateId : 0 certificateTransparencyCompliance : unknown cipher : AES_128_GCM encryptedClientHello : false issuer : keyExchange : keyExchangeGroup : X25519 protocol : TLS 1.3 sanList : [ ] serverSignatureAlgorithm : 2052 signedCertificateTimestampList : [ ] subjectName : validFrom : 1542841725 validTo : 1858201725 } securityState : secure status : 200 statusText : OK timing : { connectEnd : -1 connectStart : -1 dnsEnd : -1 dnsStart : -1 proxyEnd : -1 proxyStart : -1 pushEnd : 0 pushStart : 0 receiveHeadersEnd : receiveHeadersStart : requestTime : sendEnd : sendStart : sslEnd : -1 sslStart : -1 workerFetchStart : -1 workerReady : -1 workerRespondWithSettled : -1 workerStart : -1 } url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html?page=2 } timestamp : type : Prefetch } Network.onResponseReceivedExtraInfo { blockedCookies : [ ] cookiePartitionKey : { hasCrossSiteAncestor : false topLevelSite : https://127.0.0.1 } cookiePartitionKeyOpaque : false exemptedCookies : [ ] headers : { Accept-Ranges : bytes Connection : Keep-Alive Content-Length : 474 Content-Type : text/html Date : ETag : Keep-Alive : timeout=10 Last-Modified : Server : Apache } headersText : requestId : resourceIPAddressSpace : Loopback statusCode : 200 } Network.onLoadingFinished { encodedDataLength : 735 requestId : timestamp : } Prefetch response body { code : -32000 message : No resource with given identifier found }