Skip to content

Commit

Permalink
core(network-request): use rendererStartTime for initiator candidates (
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Feb 26, 2024
1 parent f0e144c commit fbf438a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/network-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fbf438a

Please sign in to comment.