зеркало из https://github.com/mozilla/pjs.git
Bug 689256 - Intermittent failure to set calculate timestamp for main; r=glandium
This commit is contained in:
Родитель
01e5ea98a3
Коммит
ee373508e0
|
@ -762,11 +762,12 @@ nsAppStartup::GetStartupInfo()
|
||||||
|
|
||||||
MaybeDefineProperty(cx, obj, "process", gProcessCreationTimestamp);
|
MaybeDefineProperty(cx, obj, "process", gProcessCreationTimestamp);
|
||||||
|
|
||||||
if (gXRE_mainTimestamp >= gProcessCreationTimestamp)
|
if (gXRE_mainTimestamp < gProcessCreationTimestamp)
|
||||||
MaybeDefineProperty(cx, obj, "main", gXRE_mainTimestamp);
|
|
||||||
else
|
|
||||||
Telemetry::Accumulate(Telemetry::STARTUP_MEASUREMENT_ERRORS, INVALID_MAIN);
|
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)
|
if (gCreateTopLevelWindowTimestamp >= gProcessCreationTimestamp)
|
||||||
MaybeDefineProperty(cx, obj, "createTopLevelWindow", gCreateTopLevelWindowTimestamp);
|
MaybeDefineProperty(cx, obj, "createTopLevelWindow", gCreateTopLevelWindowTimestamp);
|
||||||
else
|
else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче