andreasgal/gaia — Issue #632: Kill some apps (with display:none) when they go into the background
Author: cgjones
Created: 2012-02-24 10:21:16+00:00
State: open

We've gotten several error reports from people thinking b2g is dying or leaking memory after being used for a while. This happens because all apps keep running forever after they're launched.

Always killing all apps wouldn't be too bad; mostly it would basically make the task manager useless. But for network-dependent apps, that would be bad because we couldn't pre-load them.

So I suggest a compromise: for now, add a "hackCloseMe: true" annotation to the manifests of the really expensive apps. For now, camera and webgl demo, maybe the games. For hackCloseMe apps, we set them to "display:none" when they're switched out.

CC @vingtetun @fabricedesre @cleemoz