REGRESSION (287736@main?): [ iOS ] fast/mediastream/microphone-interruption-and-audio-session.html is constantly failing.#50597
Merged
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 5602bb0) Details |
5602bb0 to
469ad34
Compare
Collaborator
|
EWS run on current version of this PR (hash 469ad34) Details |
jyavenard
approved these changes
Sep 12, 2025
Member
There was a problem hiding this comment.
can we have an assertIsMainThread() here ?
…uption-and-audio-session.html is constantly failing. https://bugs.webkit.org/show_bug.cgi?id=287033 rdar://144177133 Reviewed by Jean-Yves Avenard. The test is flaky as we sometimes recreate the GPUProcess and the CoreAudioCaptureSourceFactory will register itself as an interruption observer to the dummy AudioSession. Instead, we are now having a singleton set of interruption observers, used by AudioSession objects when being interrupted/ending interruptions. Only the shared AudioSession is expected to being interrupted/ending interruptions, so there should be no issue with several AudioSessions doing interruptions in parallel. We also update the test to make sure capture tracks are stopped explicitly. * LayoutTests/fast/mediastream/microphone-interruption-and-audio-session.html: * LayoutTests/platform/ios/TestExpectations: * Source/WebCore/Modules/audiosession/DOMAudioSession.cpp: (WebCore::DOMAudioSession::DOMAudioSession): (WebCore::DOMAudioSession::~DOMAudioSession): * Source/WebCore/platform/audio/AudioSession.cpp: (WebCore::audioSessionInterruptionObserversSingleton): (WebCore::AudioSession::addInterruptionObserver): (WebCore::AudioSession::removeInterruptionObserver): (WebCore::AudioSession::beginInterruption): (WebCore::AudioSession::endInterruption): (WebCore::AudioSession::activeStateChanged): * Source/WebCore/platform/audio/AudioSession.h: * Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::MediaSessionManageriOS): (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): * Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp: (WebCore::CoreAudioCaptureSourceFactory::CoreAudioCaptureSourceFactory): (WebCore::CoreAudioCaptureSourceFactory::~CoreAudioCaptureSourceFactory): * Source/WebKit/GPUProcess/media/RemoteAudioSessionProxyManager.cpp: (WebKit::RemoteAudioSessionProxyManager::RemoteAudioSessionProxyManager): (WebKit::RemoteAudioSessionProxyManager::~RemoteAudioSessionProxyManager): (WebKit::RemoteAudioSessionProxyManager::beginInterruptionRemote): (WebKit::RemoteAudioSessionProxyManager::endInterruptionRemote): * Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.cpp: (WebKit::RemoteAudioMediaStreamTrackRendererInternalUnitManagerUnit::RemoteAudioMediaStreamTrackRendererInternalUnitManagerUnit): (WebKit::RemoteAudioMediaStreamTrackRendererInternalUnitManagerUnit::~RemoteAudioMediaStreamTrackRendererInternalUnitManagerUnit): * Source/WebKit/WebProcess/GPU/media/RemoteAudioSession.cpp: (WebKit::RemoteAudioSession::RemoteAudioSession): (WebKit::RemoteAudioSession::~RemoteAudioSession): (WebKit::RemoteAudioSession::beginInterruptionRemote): (WebKit::RemoteAudioSession::endInterruptionRemote): Canonical link: https://commits.webkit.org/300015@main
469ad34 to
755ea5b
Compare
Collaborator
|
Committed 300015@main (755ea5b): https://commits.webkit.org/300015@main Reviewed commits have been landed. Closing PR #50597 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
755ea5b
469ad34