From: Prateek Jadhwani <[email protected]>
Subject: Re: [b2g] Session Restoring of WebApps
Date: Thu, 27 Mar 2014 17:28:48 -0400

> Hi Thinker Li,
> 
> Well lets say that this api exists, I know it doesnt, but lets just say it
> now exists, Could you explain more about how are you planning to interact
> with this api. how you are planning to store and restore data from session
> back into the app. And what other parameters are you planning to put into
> that api.

For apps, they persist their states using session storage, local
storage, pushState, or cookie.  Whatever they use to save states,
|unload| event would be dispatched to the documents of apps if sysapp
decide to save session state of an app.

For the sysapp, it pass two addintional parameters, save_session_state
and restore_session_state, boolean values, to launch an app.
save_session_state tells gecko to keep session data while the app is
going dead.  restore_session_state tells gecko to launch the app with
the previous saved session data.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to