summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 61ad8f0c65..b4775d4322 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 {