Page Visibility API page plays audio when switching tabs without having pressed play #26745
Labels
Content:WebAPI
Web API docs
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
Open the page, switch to another tab and switch back. It starts playing audio, which is unexpected.
What did you expect to see?
No audio unless I've pressed 'play' first.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
Use the
play
event to start listening to page visibility changes:MDN metadata
Page report details
en-us/web/api/page_visibility_api
The text was updated successfully, but these errors were encountered: