$OpenBSD$ index d8b0925..2cd0aa8 100644 --- dom/base/nsPerformance.cpp.orig Fri Feb 20 15:40:37 2015 +++ dom/base/nsPerformance.cpp Fri Feb 20 15:40:37 2015 @@ -39,7 +39,12 @@ nsPerformanceTiming::nsPerformanceTiming(nsPerformance* aPerformance, { MOZ_ASSERT(aPerformance, "Parent performance object should be provided"); SetIsDOMBinding(); - // The aHttpChannel argument is null if this nsPerformanceTiming object + + if (!nsContentUtils::IsPerformanceTimingEnabled()) { + mZeroTime = 0; + } + + // The aHttpChannel argument is null if this nsPerformanceTiming object // is being used for the navigation timing (document) and has a non-null // value for the resource timing (any resources within the page). if (aHttpChannel) {