[webkit-changes] [WebKit/WebKit] 8f95bb: [ macOS EWS ] media/video-remove-insert-repaints.h...
aestes
noreply at github.com
Thu Aug 24 18:20:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8f95bb755716401ffa2af130073742978e126454
https://github.com/WebKit/WebKit/commit/8f95bb755716401ffa2af130073742978e126454
Author: Andy Estes <aestes at apple.com>
Date: 2023-08-24 (Thu, 24 Aug 2023)
Changed paths:
M Source/WebKit/WebProcess/cocoa/PlaybackSessionManager.mm
M Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm
Log Message:
-----------
[ macOS EWS ] media/video-remove-insert-repaints.html is a flaky crash
https://bugs.webkit.org/show_bug.cgi?id=260663
rdar://114387091
Reviewed by Jer Noble.
If VideoFullscreenManager::removeContext is called with a contextId that doesn't exist in
m_contextMap then a new model would be created with a null video element, leading to a crash when
attempting to remove the video element from m_videoElements. Addressed this by returning early in
VideoFullscreenManager::removeContext if no model/interface pair exists for the given contextId.
Assert that this does not occur to help us track down the underlying issue in Debug builds
(removeContext should not be called for a non-existent contextId).
* Source/WebKit/WebProcess/cocoa/PlaybackSessionManager.mm:
(WebKit::PlaybackSessionManager::removeContext):
* Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm:
(WebKit::VideoFullscreenManager::removeContext):
Canonical link: https://commits.webkit.org/267257@main
More information about the webkit-changes
mailing list