Bug 882142 - Add an interface attribute to determine if the app is restarting. r=jimm

This commit is contained in:
Brian R. Bondy 2013-09-10 10:24:56 -04:00
parent 5fe8c7843a
commit c0c7ce39ad
2 changed files with 13 additions and 1 deletions

View File

@ -515,6 +515,13 @@ nsAppStartup::GetShuttingDown(bool *aResult)
return NS_OK;
}
NS_IMETHODIMP
nsAppStartup::GetRestarting(bool *aResult)
{
*aResult = mRestart;
return NS_OK;
}
NS_IMETHODIMP
nsAppStartup::SetInterrupted(bool aInterrupted)
{

View File

@ -7,7 +7,7 @@
interface nsICmdLineService;
[scriptable, uuid(2b51b67f-6f05-4145-b37e-7369bbc92b19)]
[scriptable, uuid(380618f8-479a-435b-b58e-7398ab937531)]
interface nsIAppStartup : nsISupports
{
/**
@ -135,6 +135,11 @@ interface nsIAppStartup : nsISupports
*/
readonly attribute boolean shuttingDown;
/**
* True if the application is being restarted
*/
readonly attribute boolean restarting;
/**
* Returns an object with main, process, firstPaint, sessionRestored properties.
* Properties may not be available depending on platform or application