REGRESSION (275262@main): Unable to play games in PBS Kids Games app
ffc55da6bddb13bfeea20af84dc52c8b72539b39
REGRESSION (275262@main): Unable to play games in PBS Kids Games app https://bugs.webkit.org/show_bug.cgi?id=270284 rdar://123811318 Reviewed by NOBODY (OOPS!). The SharedAudioDestinationAdapter's configuration queue would become stuck, waiting on a semaphore which would never be triggered. This appears to be a latent bug in the RemoteAudioDestinationProxy/Manager, but one that has dire implications now that SharedAudioDestination depends on its Adapter's render() method being called. Rather than block on a Semaphore to ensure the Adapter is configured before calling the completion handlers, simply pass the completion handler into the Adapter's inner destination's start() or stop() methods. Only when the Adapter is already started (or when it's stopped and does not need to be restarted) should the completion handler get called explicitly. Now that blocking is not needed, neither is the Adapter's configuration queue; all the setup for configuration can happen on the main thread. * Source/WebCore/platform/audio/SharedAudioDestination.cpp: (WebCore::SharedAudioDestinationAdapter::protectedWorkBus): (WebCore::SharedAudioDestinationAdapter::~SharedAudioDestinationAdapter): (WebCore::SharedAudioDestinationAdapter::addRenderer): (WebCore::SharedAudioDestinationAdapter::removeRenderer): (WebCore::SharedAudioDestinationAdapter::configureRenderThread): (WebCore::SharedAudioDestinationAdapter::callAllConfigurationHandlers): (WebCore::SharedAudioDestinationAdapter::render): (WebCore::SharedAudioDestinationAdapter::protectedConfigurationQueue): Deleted. (WebCore::m_configurationSemaphore): Deleted.
https://github.com/WebKit/WebKit/commit/ffc55da6bddb13bfeea20af84dc52c8b72539b39
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/9cef17c593d65dbcbc245856f0eb29c2e349929d)
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/449fbaf1a148a6b618e815075c7426c45daef17b)
EWS run on current version of this PR (hash https://github.com/WebKit/WebKit/commit/ffc55da6bddb13bfeea20af84dc52c8b72539b39)
Safe-Merge-Queue: Build #13666.
Committed 275542@main (98f2399f9450): https://commits.webkit.org/275542@main
Reviewed commits have been landed. Closing PR #25281 and removing active labels.
๐งช wpe-wk2
๐งช gtk-wk2