Bug 689256 - Intermittent failure to set calculate timestamp for main; r=glandium

This commit is contained in:
Taras Glek 2011-10-10 15:27:05 +01:00
Родитель 01e5ea98a3
Коммит ee373508e0
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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