Merge "Don't consider FOREGROUND exemption for visibility checks" into main