Skip to content

Commit 9a7153a

Browse files
[macOS] TestWebKitAPI.WebKit.MediaBufferingPolicy is a constant failure
https://bugs.webkit.org/show_bug.cgi?id=253658 rdar://problem/106508946 Reviewed by Jer Noble. macOS shouldn't purge media playback resources on page suspension. This behavior was changed in 261354@main. This is just aligning the test case * Tools/TestWebKitAPI/Tests/WebKitCocoa/MediaBufferingPolicy.mm: (TEST): Canonical link: https://commits.webkit.org/262438@main
1 parent 3d36d22 commit 9a7153a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tools/TestWebKitAPI/Tests/WebKitCocoa/MediaBufferingPolicy.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ static void waitUntilBufferingPolicyIsEqualTo(WKWebView* webView, const char* ex
6868

6969
// Suspending the process also forces a memory warning, which should purge whatever possible ASAP.
7070
[webView _processWillSuspendImminentlyForTesting];
71+
#if PLATFORM(MAC)
72+
// Suspending the page on macOS shouldn't cause resource purging
73+
waitUntilBufferingPolicyIsEqualTo(webView.get(), "Default");
74+
#else
7175
waitUntilBufferingPolicyIsEqualTo(webView.get(), "PurgeResources");
76+
#endif
7277

7378
// And should switch back to default when buffering is allowed.
7479
[webView _processDidResumeForTesting];

0 commit comments

Comments
 (0)