In Firefox, setting focus before transition disables it