Bug 1021658 - Pref off in app sheet and disable popup on transitioning

nit: since we have the if and the else, let's start with the positive `if (ENABLE_IN_APP_SHEET)`