summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-10-20 05:00:04 -0500
committerBrian Smith <brian@dbsoft.org>2023-10-20 05:00:04 -0500
commitccbeea30aa96570af9038ac3af792e99ed6c6ce6 (patch)
tree36229420291f89e0a1ada2f1ed702bfe71f27431
parent398486a64bdd0c3ae7df24719dd434d13e58895a (diff)
downloaduxp-ccbeea30aa96570af9038ac3af792e99ed6c6ce6.tar.gz
Issue #2282 - Part 2 - Re-add some timer clamping that got clobber erroneously.
-rw-r--r--dom/performance/PerformanceNavigationTiming.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/dom/performance/PerformanceNavigationTiming.cpp b/dom/performance/PerformanceNavigationTiming.cpp
index 1c4a30b569..8696a5bcfa 100644
--- a/dom/performance/PerformanceNavigationTiming.cpp
+++ b/dom/performance/PerformanceNavigationTiming.cpp
@@ -24,49 +24,49 @@ PerformanceNavigationTiming::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aG
DOMHighResTimeStamp
PerformanceNavigationTiming::UnloadEventStart() const
{
- return mPerformance->GetDOMTiming()->GetUnloadEventStartHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetUnloadEventStartHighRes());
}
DOMHighResTimeStamp
PerformanceNavigationTiming::UnloadEventEnd() const
{
- return mPerformance->GetDOMTiming()->GetUnloadEventEndHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetUnloadEventEndHighRes());
}
DOMHighResTimeStamp
PerformanceNavigationTiming::DomInteractive() const
{
- return mPerformance->GetDOMTiming()->GetDomInteractiveHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetDomInteractiveHighRes());
}
DOMHighResTimeStamp
PerformanceNavigationTiming::DomContentLoadedEventStart() const
{
- return mPerformance->GetDOMTiming()->GetDomContentLoadedEventStartHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetDomContentLoadedEventStartHighRes());
}
DOMHighResTimeStamp
PerformanceNavigationTiming::DomContentLoadedEventEnd() const
{
- return mPerformance->GetDOMTiming()->GetDomContentLoadedEventEndHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetDomContentLoadedEventEndHighRes());
}
DOMHighResTimeStamp
PerformanceNavigationTiming::DomComplete() const
{
- return mPerformance->GetDOMTiming()->GetDomCompleteHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetDomCompleteHighRes());
}
DOMHighResTimeStamp
PerformanceNavigationTiming::LoadEventStart() const
{
- return mPerformance->GetDOMTiming()->GetLoadEventStartHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetLoadEventStartHighRes());
}
DOMHighResTimeStamp
PerformanceNavigationTiming::LoadEventEnd() const
{
- return mPerformance->GetDOMTiming()->GetLoadEventEndHighRes();
+ return TimerClamping::ReduceMsTimeValue(mPerformance->GetDOMTiming()->GetLoadEventEndHighRes());
}
NavigationType