Bug 247928

Summary: REGRESSION (Ventura): [ Ventura+ ] TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus is a constant failure
Product: WebKit Reporter: Robert Jenner <jenner>
Component: New BugsAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Robert Jenner 2022-11-14 17:50:53 PST
TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus

is a constant failure on macOS Ventura. 

HISTORY:

https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus

TEST RUN URL:
https://build.webkit.org/#/builders/707/builds/213


FAILURE TEXT:
    TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus
        2022-11-14 17:21:09.009 com.apple.WebKit.WebContent.Development[59973:79969044] ApplePersistence=NO
        2022-11-14 17:21:09.103 com.apple.WebKit.WebContent.Development[59974:79969056] ApplePersistence=NO
        
        /Volumes/Data/worker/Apple-Ventura-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:3011
        Value of: [webView1 hostWindow].isVisible
          Actual: true
        Expected: false
        
        
        /Volumes/Data/worker/Apple-Ventura-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:3012
        Value of: [webView2 hostWindow].isVisible
          Actual: true
        Expected: false
        
        
        /Volumes/Data/worker/Apple-Ventura-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:3020
        Value of: [webView1 hostWindow].isVisible
          Actual: false
        Expected: true
        
        
        /Volumes/Data/worker/Apple-Ventura-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:3022
        Value of: [webView1 hostWindow].isMiniaturized
          Actual: true
        Expected: false
        
        
        /Volumes/Data/worker/Apple-Ventura-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:3043
        Value of: [webView1 hostWindow].isMiniaturized
          Actual: true
        Expected: false
Comment 1 Radar WebKit Bug Importer 2022-11-14 17:51:21 PST
<rdar://problem/102346207>
Comment 2 Robert Jenner 2022-11-14 18:03:18 PST
I have been able to reproduce this failure very easily on Ventura Debug ToT running the test as follows:

run-api-tests TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus
Comment 3 Robert Jenner 2022-11-14 18:03:38 PST
Starting on Youenn who introduced the test here:

https://commits.webkit.org/248909@main
Comment 4 youenn fablet 2022-11-15 05:16:23 PST
Pull request: https://github.com/WebKit/WebKit/pull/6515
Comment 5 EWS 2022-11-15 11:56:33 PST
Committed 256705@main (2150c956beac): <https://commits.webkit.org/256705@main>

Reviewed commits have been landed. Closing PR #6515 and removing active labels.
Comment 6 youenn fablet 2022-11-16 00:48:58 PST
Re-opening for pull request https://github.com/WebKit/WebKit/pull/6544
Comment 7 EWS 2022-11-16 10:02:09 PST
Committed 256741@main (a2054f59c10a): <https://commits.webkit.org/256741@main>

Reviewed commits have been landed. Closing PR #6544 and removing active labels.