Readonly
automaticTrue if startup was interrupted by an interactive prompt.
Readonly
restartingTrue if the application is being restarted
Readonly
secondsThe number of seconds since the OS was last rebooted
Readonly
showedWhether or not we showed the startup skeleton UI.
Readonly
shuttingTrue if the application is in the process of shutting down. This is functionally equivalent to the C++ call AppShutdown::IsInOrBeyond(ShutdownPhase::AppShutdownConfirmed); (which is the preferred way of checking for shutdown in C++).
Readonly
startingTrue if the application is in the process of starting up.
Startup is complete once all observers of final-ui-startup have returned.
Readonly
wasTrue if this is the startup following restart, i.e. if the application was restarted using quit(eRestart*).
Readonly
wasTrue if this is the startup following a silent restart, i.e. if the application was restarted using quit(eSilently*), or if the application was started with the "silentmode" command line flag.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Wrapper for shutdown notifications that informs the terminator before we notify other observers. Calls MaybeFastShutdown. This function is supposed to be used only from some (xpcshell) tests explicitely dealing with shutdown.
The shutdown phase we want to advance to. Please note, that we cannot go back to earlier phases or abort shutdown once it started.
Exit the event loop, and shut down the app.
false if the shutdown was cancelled due to the presence of a hidden window or if the user disallowed a window to be closed.
This parameter modifies how the app is shutdown, and it is constructed from the constants defined above.
The exit code to return from the process. The precise code returned by the process may vary depending on the platform. Only values 0-255 should generally be used. If not specified an exit code of 0 will be used.
Runs an application event loop: normally the main event pump which defines the lifetime of the application. If there are no windows open and no outstanding calls to enterLastWindowClosingSurvivalArea this method will exit immediately.
NS_SUCCESS_RESTART_APP This return code indicates that the application should be restarted because quit was called with the eRestart flag.
Generated using TypeDoc
Startup Crash Detection
Keeps track of application startup begining and success using flags to determine whether the application is crashing on startup. When the number of crashes crosses the acceptable threshold, safe mode or other repair procedures are performed. Whether automatic safe mode is necessary at this time. This gets set in trackStartupCrashBegin.
See
trackStartupCrashBegin