mozilla-b2g/gaia — pull request #13011 by jrburke (2013-10-22 22:48:25+00:00)
Title: Bug 925174 - [email] webactivity-triggered compose activity does not trigger

If a web activity opened email, and there was no email accounts configured, the user had option to configure an email account, then continue with the compose web activity. However, what happened was that the compose action was lost once the account was set up.

This change makes sure to continue any web activity action after getting the 'showLatestAccount' event from the card setup. Since that continuation work needed to happen in two places, a new function was created to do the work for each case. the onPushed option for a card is run after the card for the current action completes.

Includes an integration test to make sure this pathway does not regress in the future.