FIX: checks on browser API instead of relying on property state (PR #8114)

GitHub

You’ve signed the CLA, jjaffeux. Thank you! This pull request is ready for review.