Thinker, I would suggest making a library to do all that, and do all that stuff. I mean on the Gaia end, rather than going for B2G. And then, this library could be used by system app to do what you want to do.
I would like to know your reasoning for creating an api in B2G rather than Gaia. Because I do agree with with Fabrice, creating an api just for this task might not be the proper way to achieve this goal. It might be a way, but not a proper one. Thanks *Prateek Jadhwani* www.prateekjadhwani.com On Thu, Mar 27, 2014 at 6:08 PM, Thinker K.F. Li <[email protected]>wrote: > 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
