summaryrefslogtreecommitdiff
path: root/dom/performance/PerformanceResourceTiming.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/performance/PerformanceResourceTiming.h')
-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 {