TestWebKitAPI.WebKitLegacy.MediaPlaybackSleepAssertion TestWebKitAPI.SleepDisabler.Pause both started failing in macOS. HISTORY URL: https://results.webkit.org/?suite=api-tests&suite=api-tests&test=TestWebKitAPI.SleepDisabler.Pause&test=TestWebKitAPI.WebKitLegacy.MediaPlaybackSleepAssertion
<rdar://problem/76286539>
Was able to reproduce the failure at ToT using the following test: run-api-tests TestWebKitAPI.SleepDisabler.Pause --iterations 10 --child-process=1 The test also failed at r275538, but passed on the revision right before it. It appears the r275538 changeset caused the API failures: https://trac.webkit.org/changeset/275538/webkit
TestWebKitAPI.WebKitLegacy.MediaPlaybackSleepAssertion 2021-04-06 15:11:37.882 TestWebKitAPI[1488:8689736] nil host used in call to allowsSpecificHTTPSCertificateForHost 2021-04-06 15:11:37.882 TestWebKitAPI[1488:8689736] nil host used in call to allowsAnyHTTPSCertificateForHost: 2021-04-06 15:11:37.951 TestWebKitAPI[1488:8689736] *** WARNING: Method convertPointToBase: in class NSView is deprecated on 10.7 and later. It should not be used in new applications. /Volumes/Data/worker/bigsur-release/build/Tools/TestWebKitAPI/Tests/mac/MediaPlaybackSleepAssertion.mm:179 Value of: hasAssertionType(CFSTR("PreventUserIdleDisplaySleep")) Actual: false Expected: true /Volumes/Data/worker/bigsur-release/build/Tools/TestWebKitAPI/Tests/mac/MediaPlaybackSleepAssertion.mm:192 Value of: hasAssertionType(CFSTR("PreventUserIdleSystemSleep")) Actual: true Expected: false TestWebKitAPI.SleepDisabler.Pause /Volumes/Data/worker/bigsur-release/build/Tools/TestWebKitAPI/Tests/WebKit/SleepDisabler.mm:112 Expected equality of these values: shouldHaveSleepDisabler Which is: false [webView _hasSleepDisabler] Which is: '\x1' (1)
Created attachment 425336 [details] Patch
Committed r275574: <https://commits.webkit.org/r275574> All reviewed patches have been landed. Closing bug and clearing flags on attachment 425336 [details].