Bug 1051689 Ensure to complete the last pending action r=emk
Bug 1050703 Don't reset selection at starting composition if it's unnecessary r=emk