Tests that appropriate Network domain events are dispatched during speculation rules prefetch while following redirects cross-site
Network.requestWillBeSent{
documentURL : <string>
frameId : <string>
hasUserGesture : false
initiator : {
type : other
}
loaderId : <string>
redirectHasExtraInfo : false
request : {
headers : {
Accept-Language : en-us,en;q=0.9
Upgrade-Insecure-Requests : 1
User-Agent : <string>
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?url=%2Fresources%2Fredirect.php%3Furl%3Dhttps%253A%252F%252Flocalhost%253A8443%252Fresources%252Fblank.html
}
requestId : <string>
timestamp : <number>
type : Document
wallTime : <number>
}
Network.requestWillBeSentExtraInfo{
associatedCookies : [
]
connectTiming : <object>
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 : <string>
sec-ch-ua : "content_shell";v="999"
sec-ch-ua-mobile : ?0
sec-ch-ua-platform : "Unknown"
}
requestId : <string>
siteHasCookieInOtherPartition : false
}
Network.responseReceived{
frameId : <string>
hasExtraInfo : true
loaderId : <string>
requestId : <string>
response : {
alternateProtocolUsage : unspecifiedReason
charset :
connectionId : <number>
connectionReused : true
encodedDataLength : 261
fromDiskCache : false
fromPrefetchCache : false
fromServiceWorker : false
headers : {
Accept-Ranges : bytes
Connection : Keep-Alive
Content-Length : 441
Content-Type : text/html
Date : <string>
ETag : <string>
Keep-Alive : timeout=10
Last-Modified : <string>
Server : Apache
}
mimeType : text/html
protocol : http/1.1
remoteIPAddress : <string>
remotePort : 8443
responseTime : <number>
securityDetails : <object>
securityState : insecure
status : 200
statusText : OK
timing : <object>
url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html?url=%2Fresources%2Fredirect.php%3Furl%3Dhttps%253A%252F%252Flocalhost%253A8443%252Fresources%252Fblank.html
}
timestamp : <number>
type : Document
}
Network.responseReceivedExtraInfo{
blockedCookies : [
]
cookiePartitionKey : {
hasCrossSiteAncestor : false
topLevelSite : https://127.0.0.1
}
cookiePartitionKeyOpaque : false
exemptedCookies : [
]
headers : {
Accept-Ranges : bytes
Connection : Keep-Alive
Content-Length : 441
Content-Type : text/html
Date : <string>
ETag : <string>
Keep-Alive : timeout=10
Last-Modified : <string>
Server : Apache
}
headersText : <string>
requestId : <string>
resourceIPAddressSpace : Local
statusCode : 200
}
Network.loadingFinished{
encodedDataLength : 702
requestId : <string>
timestamp : <number>
}
Network.requestWillBeSent{
documentURL : <string>
frameId : <string>
hasUserGesture : false
initiator : {
type : script
url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html?url=%2Fresources%2Fredirect.php%3Furl%3Dhttps%253A%252F%252Flocalhost%253A8443%252Fresources%252Fblank.html
}
loaderId : <string>
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
Purpose : prefetch
Referer : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html?url=%2Fresources%2Fredirect.php%3Furl%3Dhttps%253A%252F%252Flocalhost%253A8443%252Fresources%252Fblank.html
Sec-Purpose : prefetch
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/resources/redirect.php?url=https%3A%2F%2Flocalhost%3A8443%2Fresources%2Fblank.html
}
requestId : <string>
timestamp : <number>
type : Prefetch
wallTime : <number>
}
Network.requestWillBeSentExtraInfo{
associatedCookies : [
]
connectTiming : <object>
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
Purpose : prefetch
Referer : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html?url=%2Fresources%2Fredirect.php%3Furl%3Dhttps%253A%252F%252Flocalhost%253A8443%252Fresources%252Fblank.html
Sec-Fetch-Dest : empty
Sec-Fetch-Mode : no-cors
Sec-Fetch-Site : none
Sec-Purpose : prefetch
Upgrade-Insecure-Requests : 1
User-Agent : <string>
sec-ch-ua : "content_shell";v="999"
sec-ch-ua-mobile : ?0
sec-ch-ua-platform : "Unknown"
}
requestId : <string>
siteHasCookieInOtherPartition : false
}
Network.requestWillBeSent{
documentURL : <string>
frameId : <string>
hasUserGesture : false
initiator : {
type : script
url : https://127.0.0.1:8443/inspector-protocol/prefetch/resources/prefetch.https.html?url=%2Fresources%2Fredirect.php%3Furl%3Dhttps%253A%252F%252Flocalhost%253A8443%252Fresources%252Fblank.html
}
loaderId : <string>
redirectHasExtraInfo : true
redirectResponse : {
alternateProtocolUsage : unspecifiedReason
charset :
connectionId : <number>
connectionReused : true
encodedDataLength : 248
fromDiskCache : false
fromPrefetchCache : false
fromServiceWorker : false
headers : {
Connection : Keep-Alive
Content-Length : 0
Content-Type : text/html
Date : <string>
Keep-Alive : timeout=10
Location : https://localhost:8443/resources/blank.html
Server : Apache
X-Powered-By : <string>
}
mimeType : text/html
protocol : http/1.1
remoteIPAddress : <string>
remotePort : 8443
responseTime : <number>
securityDetails : <object>
securityState : insecure
status : 302
statusText : Found
timing : <object>
url : https://127.0.0.1:8443/resources/redirect.php?url=https%3A%2F%2Flocalhost%3A8443%2Fresources%2Fblank.html
}
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
Purpose : prefetch
Referer : https://127.0.0.1:8443/
Sec-Purpose : prefetch
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://localhost:8443/resources/blank.html
}
requestId : <string>
timestamp : <number>
type : Prefetch
wallTime : <number>
}
Network.responseReceivedExtraInfo{
blockedCookies : [
]
cookiePartitionKey : {
hasCrossSiteAncestor : false
topLevelSite : https://127.0.0.1
}
cookiePartitionKeyOpaque : false
exemptedCookies : [
]
headers : {
Connection : Keep-Alive
Content-Length : 0
Content-Type : text/html
Date : <string>
Keep-Alive : timeout=10
Location : https://localhost:8443/resources/blank.html
Server : Apache
X-Powered-By : <string>
}
headersText : <string>
requestId : <string>
resourceIPAddressSpace : Local
statusCode : 302
}
Network.requestWillBeSentExtraInfo{
associatedCookies : [
]
connectTiming : <object>
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
Connection : keep-alive
Host : localhost:8443
Purpose : prefetch
Referer : https://127.0.0.1:8443/
Sec-Fetch-Dest : empty
Sec-Fetch-Mode : no-cors
Sec-Fetch-Site : none
Sec-Purpose : prefetch
Upgrade-Insecure-Requests : 1
User-Agent : <string>
sec-ch-ua : "content_shell";v="999"
sec-ch-ua-mobile : ?0
sec-ch-ua-platform : "Unknown"
}
requestId : <string>
siteHasCookieInOtherPartition : false
}
Network.responseReceived{
frameId : <string>
hasExtraInfo : true
loaderId : <string>
requestId : <string>
response : {
alternateProtocolUsage : unspecifiedReason
charset :
connectionId : <number>
connectionReused : false
encodedDataLength : 257
fromDiskCache : false
fromPrefetchCache : true
fromServiceWorker : false
headers : {
Accept-Ranges : bytes
Connection : Keep-Alive
Content-Length : 0
Content-Type : text/html
Date : <string>
ETag : <string>
Keep-Alive : timeout=10
Last-Modified : <string>
Server : Apache
}
mimeType : text/html
protocol : http/1.1
remoteIPAddress : <string>
remotePort : 8443
responseTime : <number>
securityDetails : <object>
securityState : insecure
status : 200
statusText : OK
timing : <object>
url : https://localhost:8443/resources/blank.html
}
timestamp : <number>
type : Prefetch
}
Network.responseReceivedExtraInfo{
blockedCookies : [
]
cookiePartitionKey : {
hasCrossSiteAncestor : false
topLevelSite : https://localhost
}
cookiePartitionKeyOpaque : false
exemptedCookies : [
]
headers : {
Accept-Ranges : bytes
Connection : Keep-Alive
Content-Length : 0
Content-Type : text/html
Date : <string>
ETag : <string>
Keep-Alive : timeout=10
Last-Modified : <string>
Server : Apache
}
headersText : <string>
requestId : <string>
resourceIPAddressSpace : Local
statusCode : 200
}
Network.loadingFinished{
encodedDataLength : 257
requestId : <string>
timestamp : <number>
}
Unable to get prefetch response body{
code : -32000
message : No resource with given identifier found
}