diff --git a/toolkit/components/startup/nsAppStartup.cpp b/toolkit/components/startup/nsAppStartup.cpp index 5094f72b6b7..806efd39334 100644 --- a/toolkit/components/startup/nsAppStartup.cpp +++ b/toolkit/components/startup/nsAppStartup.cpp @@ -762,11 +762,12 @@ nsAppStartup::GetStartupInfo() MaybeDefineProperty(cx, obj, "process", gProcessCreationTimestamp); - if (gXRE_mainTimestamp >= gProcessCreationTimestamp) - MaybeDefineProperty(cx, obj, "main", gXRE_mainTimestamp); - else + if (gXRE_mainTimestamp < gProcessCreationTimestamp) Telemetry::Accumulate(Telemetry::STARTUP_MEASUREMENT_ERRORS, INVALID_MAIN); + // always define main to aid with bug 689256 + MaybeDefineProperty(cx, obj, "main", gXRE_mainTimestamp); + if (gCreateTopLevelWindowTimestamp >= gProcessCreationTimestamp) MaybeDefineProperty(cx, obj, "createTopLevelWindow", gCreateTopLevelWindowTimestamp); else