No issue - Align our resource timing with the updated Fetch spec.

This makes FetchStart use StartTime() when the TAO check fails for
PerformanceResourceTiming

Given the recent Fetch spec updates, Step 8.1 in
https://fetch.spec.whatwg.org/#finalize-and-report-timing specifies that start
time(StartTime) and post-redirect start time(FetchStart) should be start time
when the TAO check fails.
This commit is contained in:
Moonchild 2022-05-04 17:24:10 +00:00 committed by roytam1
commit 50965fb223

View file

@ -69,9 +69,12 @@ public:
}
DOMHighResTimeStamp FetchStart() const {
return mTiming
if (mTiming) {
return mTiming->TimingAllowed()
? mTiming->FetchStartHighRes()
: 0;
: StartTime();
}
return 0;
}
DOMHighResTimeStamp RedirectStart() const {