Bug 921194 - Fix trustedUI asynchronous app life state
Merge pull request #12804 from alivedise/bugzilla/921194_master/fix-trustedui

Bug 921194 - Fix trustedUI asynchronous app state.  r=timdream