Bug 224249 - REGRESSION (r275538): [ macOS ] TestWebKitAPI.WebKitLegacy.MediaPlaybackSleepAssertion and TestWebKitAPI.SleepDisabler.Pause consistently failing
Summary: REGRESSION (r275538): [ macOS ] TestWebKitAPI.WebKitLegacy.MediaPlaybackSleep...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-06 15:10 PDT by Robert Jenner
Modified: 2021-04-06 17:32 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.17 KB, patch)
2021-04-06 16:44 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Jenner 2021-04-06 15:10:50 PDT
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
Comment 1 Radar WebKit Bug Importer 2021-04-06 15:12:28 PDT
<rdar://problem/76286539>
Comment 2 Robert Jenner 2021-04-06 15:16:01 PDT
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
Comment 3 Ryan Haddad 2021-04-06 15:34:13 PDT
    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)
Comment 4 Eric Carlson 2021-04-06 16:44:36 PDT
Created attachment 425336 [details]
Patch
Comment 5 EWS 2021-04-06 17:32:15 PDT
Committed r275574: <https://commits.webkit.org/r275574>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425336 [details].