summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dom/base/nsPerformance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/base/nsPerformance.cpp b/dom/base/nsPerformance.cpp
index 8928b8094..38f12cfad 100644
--- a/dom/base/nsPerformance.cpp
+++ b/dom/base/nsPerformance.cpp
@@ -468,9 +468,9 @@ DOMHighResTimeStamp
nsPerformance::Now()
{
double nowTimeMs = GetDOMTiming()->TimeStampToDOMHighRes(TimeStamp::Now());
- // Clamp the resolution of performance.now() calls to 10us, because otherwise
+ // Clamp the resolution of performance.now() calls to 50us, because otherwise
// we allow various timing attacks that depend on high accuracy timers.
- const double maxResolutionMs = 0.010;
+ const double maxResolutionMs = 0.050;
return floor(nowTimeMs / maxResolutionMs) * maxResolutionMs;
}