summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorSean Feng <sefeng@mozilla.com>2022-05-05 17:00:21 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-05-05 17:00:36 -0500
commit516f184cabdf97ddd50e27a8ed4a9b407298b4b7 (patch)
tree4698117367a9533111377177b878353b92797df0 /dom
parent0a2ad0f460db70287ba15958a65f3d7785edfa23 (diff)
downloadaura-central-516f184cabdf97ddd50e27a8ed4a9b407298b4b7.tar.gz
Bug 1751678 - Make FetchStart uses StarTime when TAO check fails for PerformanceResourceTiming
Diffstat (limited to 'dom')
-rw-r--r--dom/performance/PerformanceResourceTiming.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/dom/performance/PerformanceResourceTiming.h b/dom/performance/PerformanceResourceTiming.h
index 61ad8f0c6..b4775d432 100644
--- a/dom/performance/PerformanceResourceTiming.h
+++ b/dom/performance/PerformanceResourceTiming.h
@@ -69,9 +69,12 @@ public:
}
DOMHighResTimeStamp FetchStart() const {
- return mTiming
+ if (mTiming) {
+ return mTiming->TimingAllowed()
? mTiming->FetchStartHighRes()
- : 0;
+ : StartTime();
+ }
+ return 0;
}
DOMHighResTimeStamp RedirectStart() const {