mozilla-b2g/gaia — pull request #24852 by sfoster (2014-10-06 22:04:51+00:00)
Title: Bug 1067649 - v2.1 exit to app or homescreen

Since bug 1071852, this logic can be simplified greatly. The patch avoids the trap where StackManager's getCurrent calls back to AppWindowManager's activeApp - which is not yet updated and points to the app we just killed.