Bug 910466 - Refactor IPC app state updating. r=fabrice