From fbf438a547183ebbd3372bc36e0255dde8538864 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Mon, 26 Feb 2024 15:28:10 -0800 Subject: [PATCH] core(network-request): use rendererStartTime for initiator candidates (#15832) --- core/lib/network-recorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/network-recorder.js b/core/lib/network-recorder.js index 5a3c814a4232..fa0b3af8bd4c 100644 --- a/core/lib/network-recorder.js +++ b/core/lib/network-recorder.js @@ -257,7 +257,7 @@ class NetworkRecorder extends RequestEventEmitter { let candidates = recordsByURL.get(initiatorURL) || []; // The (valid) initiator must come before the initiated request. candidates = candidates.filter(c => { - return c.responseHeadersEndTime <= record.networkRequestTime && + return c.responseHeadersEndTime <= record.rendererStartTime && c.finished && !c.failed; }); if (candidates.length > 1) {