Bug 877215 - Toggle lockscreen animation according to visibilitychange