Bug 216263

Summary: REGRESSION (r266634): [macOS release] TestWebKitAPI.WebKit.WKThumbnailViewResetsViewStateWhenUnparented is a flaky failure
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: sihui_liu, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=216012
https://bugs.webkit.org/show_bug.cgi?id=216047

Description Ryan Haddad 2020-09-07 22:25:27 PDT
The following API test recently became a flaky failure on macOS release bots:

    TestWebKitAPI.WebKit.WKThumbnailViewResetsViewStateWhenUnparented
        _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
        
        /Volumes/Data/slave/mojave-release/build/Tools/TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm:300
        Value of: [[webView objectByEvaluatingJavaScript:@"window.internals.isPageActive()"] boolValue]
          Actual: false
        Expected: true

https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.WebKit.WKThumbnailViewResetsViewStateWhenUnparented
Comment 1 Radar WebKit Bug Importer 2020-09-07 22:25:49 PDT
<rdar://problem/68487302>
Comment 2 Ryan Haddad 2020-09-07 22:26:55 PDT
Looks like it started at or around https://trac.webkit.org/changeset/266634/webkit
Comment 4 Sihui Liu 2020-09-08 07:47:41 PDT
I already filed a bug about this and proposed a fix: https://bugs.webkit.org/show_bug.cgi?id=216258. 

About layout tests, I can only reproduce failure of fast/animation/request-animation-frame-throttling-lowPowerMode.html so far: https://bugs.webkit.org/show_bug.cgi?id=216261.

*** This bug has been marked as a duplicate of bug 216258 ***
Comment 5 Ryan Haddad 2020-09-08 10:19:17 PDT
(In reply to Sihui Liu from comment #4)
> I already filed a bug about this and proposed a fix:
> https://bugs.webkit.org/show_bug.cgi?id=216258. 
> 
> About layout tests, I can only reproduce failure of
> fast/animation/request-animation-frame-throttling-lowPowerMode.html so far:
> https://bugs.webkit.org/show_bug.cgi?id=216261.
> 
> *** This bug has been marked as a duplicate of bug 216258 ***

I can reproduce at least one of the failures. Filed https://bugs.webkit.org/show_bug.cgi?id=216275.