Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 509e56e65b26af080dec574502da42e257d1f038
https://github.com/WebKit/WebKit/commit/509e56e65b26af080dec574502da42e257d1f038
Author: Eric Carlson <[email protected]>
Date: 2025-12-02 (Tue, 02 Dec 2025)
Changed paths:
M Source/WebCore/html/MediaElementSession.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/MediaBufferingPolicy.mm
Log Message:
-----------
Update media session BufferingPolicy logic
https://bugs.webkit.org/show_bug.cgi?id=303345
rdar://165651409
Reviewed by Andy Estes.
Update the calculation of buffering policy in
`MediaElementSession::preferredBufferingPolicy`
so when the process changes to the foreground we don't change from
`PurgeResources` unless
the element is playing. Drive-by: fix WebKit.MediaBufferingPolicy.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/MediaBufferingPolicy.mm
* Source/WebCore/html/MediaElementSession.cpp:
(WebCore::MediaElementSession::preferredBufferingPolicy const):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/MediaBufferingPolicy.mm:
(setWebViewVisible):
(TEST(WebKit, MediaBufferingPolicy)):
(TEST(WebKit, MediaBufferingPolicyWhenSuspendedOrHidden)):
Canonical link: https://commits.webkit.org/303779@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications