Bug 263421

Summary: [ Ventura+ ] TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus is a flaky failure
Product: WebKit Reporter: Karl Rackler <rackler>
Component: New BugsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Karl Rackler 2023-10-19 17:01:27 PDT
Description:
TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus

Is a flaky failure on Sonoma ToT and since bring-up.  This is also a flaky failure on Ventura going back on the dashboard to approximately 08/29/23 at 267407@main, although I cannot see how that commit is related.

This issue can reproduced on Sonoma using the command: 
run-api-tests --debug --iterations=1 TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus

History:
https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocusRequiresUserGesture&limit=5500

Result:

Failed
    TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus
        LEAK: 1 WebProcessPool
        LEAK: 2 WebPageProxy
        
        /Volumes/Data/worker/Apple-Sonoma-Debug-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:3258
        Value of: [webView2 hostWindow].isMiniaturized
          Actual: true
        Expected: false
Comment 1 Radar WebKit Bug Importer 2023-10-19 17:01:46 PDT
<rdar://problem/117233556>
Comment 2 Chris Dumez 2023-10-23 07:22:21 PDT
The flakiness dashboard link should be this one I believe:
https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.ServiceWorker.ServiceWorkerWindowClientFocus&limit=5500
Comment 3 Chris Dumez 2023-10-23 07:55:41 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19414
Comment 4 EWS 2023-10-23 09:17:49 PDT
Committed 269649@main (e8764c09d722): <https://commits.webkit.org/269649@main>

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