(response, initiatorType = "other")
| 13550 | } |
| 13551 | __name(fetch2, "fetch"); |
| 13552 | function finalizeAndReportTiming(response, initiatorType = "other") { |
| 13553 | if (response.type === "error" && response.aborted) { |
| 13554 | return; |
| 13555 | } |
| 13556 | if (!response.urlList?.length) { |
| 13557 | return; |
| 13558 | } |
| 13559 | const originalURL = response.urlList[0]; |
| 13560 | let timingInfo = response.timingInfo; |
| 13561 | let cacheState = response.cacheState; |
| 13562 | if (!urlIsHttpHttpsScheme(originalURL)) { |
| 13563 | return; |
| 13564 | } |
| 13565 | if (timingInfo === null) { |
| 13566 | return; |
| 13567 | } |
| 13568 | if (!response.timingAllowPassed) { |
| 13569 | timingInfo = createOpaqueTimingInfo({ |
| 13570 | startTime: timingInfo.startTime |
| 13571 | }); |
| 13572 | cacheState = ""; |
| 13573 | } |
| 13574 | timingInfo.endTime = coarsenedSharedCurrentTime(); |
| 13575 | response.timingInfo = timingInfo; |
| 13576 | markResourceTiming( |
| 13577 | timingInfo, |
| 13578 | originalURL.href, |
| 13579 | initiatorType, |
| 13580 | globalThis, |
| 13581 | cacheState, |
| 13582 | "", |
| 13583 | // bodyType |
| 13584 | response.status |
| 13585 | ); |
| 13586 | } |
| 13587 | __name(finalizeAndReportTiming, "finalizeAndReportTiming"); |
| 13588 | var markResourceTiming = performance.markResourceTiming; |
| 13589 | function abortFetch(p, request, responseObject, error, controller) { |
no test coverage detected
searching dependent graphs…