@@ -24,7 +24,7 @@ const {
24
24
requestCurrentURL,
25
25
setRequestReferrerPolicyOnRedirect,
26
26
tryUpgradeRequestToAPotentiallyTrustworthyURL,
27
- makeTimingInfo ,
27
+ createOpaqueTimingInfo ,
28
28
appendFetchMetadata,
29
29
corsCheck,
30
30
crossOriginResourcePolicyCheck,
@@ -226,11 +226,9 @@ function finalizeAndReportTiming (response, initiatorType = 'other') {
226
226
227
227
// 6. If response’s timing allow passed flag is not set, then:
228
228
if ( ! timingInfo . timingAllowPassed ) {
229
- // 1. Set timingInfo to a new fetch timing info whose start time and
230
- // post-redirect start time are timingInfo’s start time.
231
- timingInfo = makeTimingInfo ( {
232
- startTime : timingInfo . startTime ,
233
- postRedirectStartTime : timingInfo . postRedirectStartTime
229
+ // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
230
+ timingInfo = createOpaqueTimingInfo ( {
231
+ startTime : timingInfo . startTime
234
232
} )
235
233
236
234
// 2. Set cacheState to the empty string.
@@ -339,9 +337,8 @@ function fetching ({
339
337
// post-redirect start time are the coarsened shared current time given
340
338
// crossOriginIsolatedCapability.
341
339
const currenTime = coarsenedSharedCurrentTime ( crossOriginIsolatedCapability )
342
- const timingInfo = makeTimingInfo ( {
343
- startTime : currenTime ,
344
- postRedirectStartTime : currenTime
340
+ const timingInfo = createOpaqueTimingInfo ( {
341
+ startTime : currenTime
345
342
} )
346
343
347
344
// 6. Let fetchParams be a new fetch params whose
0 commit comments