[Webkit-unassigned] [Bug 276016] New: Web Audio sounds stop playing after losing focus of safari in iOS 17.5.1
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 28 14:50:32 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=276016
Bug ID: 276016
Summary: Web Audio sounds stop playing after losing focus of
safari in iOS 17.5.1
Product: WebKit
Version: Other
Hardware: iPhone / iPad
OS: iOS 17
Status: NEW
Severity: Major
Priority: P2
Component: Web Audio
Assignee: webkit-unassigned at lists.webkit.org
Reporter: condeagustin at hotmail.com
CC: cdumez at apple.com
After upgrading to iOS 17.5.1 (in any iOS device), when losing and then gaining focus of safari, any web audio sound that was playing (before losing focus) is off for the rest of the session. Even if you tap on a UI element that is supposed to produce a sound, the sound never comes back. This issue is 100% reproducible only on iOS 17.5.1. In the previous iOS version (e.g. 17.4.1) I tested it and this issue never happened
You can use the following web audio sample to repro the issue from safari iOS 17.5.1 (taken from the official web audio context documentation https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/resume):
1. Open https://mdn.github.io/webaudio-examples/audiocontext-states/ from iOS 17.5.1 safari
2. Tap on the "create context" button. You hear a constant sound
3. Lose focus of safari (e.g. minimize it) and the sound stops playing
4. Gain focus of safari and you will see that the sound is never heard again. In a previous iOS version (or in any other non-iOS browser), such sound keeps playing just fine after losing focus. For some reason, iOS 17.5.1 breaks the web audio context when you lose focus, and the only way to hear sounds again is to create a new instance of web audio context every time you gain focus
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240628/fc965a96/attachment.htm>
More information about the webkit-unassigned
mailing list