Bug 223293

Summary: [ macOS wk2 ] media/media-fullscreen-return-to-inline.html is a flakey text failure and flakey timeout
Product: WebKit Reporter: Robert Jenner <jenner>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: peng.liu6, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Robert Jenner 2021-03-16 18:21:21 PDT
media/media-fullscreen-return-to-inline.html

is flakey flakey timing out in Catalina and BigSur in WK2 in release and debug.

This test is also flakey text failing in BigSur release and debug in wk2, but only on Apple Silicon systems.

HISTORY URL:
https://results.webkit.org/?suite=layout-tests&test=media%2Fmedia-fullscreen-return-to-inline.html&architecture=arm64

TEXT TIMEOUT LOG:
+#PID UNRESPONSIVE - WebKitTestRunner (pid 50406)
+FAIL: Timed out waiting for notifyDone to be called
 
-Test that a <video> pauses after exiting fullscreen when the internal property "allowsInlineMediaPlaybackAfterFullscreen" is false.
-
-RUN(video.src = findMediaFile("video", "content/test"))
-EVENT(canplaythrough)
-RUN(video.play())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'true') OK
-RUN(video.webkitExitFullscreen())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'false') OK
-EXPECTED (video.paused == 'true') OK
-RUN(video.play())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'true') OK
-RUN(video.webkitExitFullscreen())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'false') OK
-EXPECTED (video.paused == 'false') OK
-END OF TEST
-
+#EOF
+#EOF


DIFF TEXT ON APPLE SILICON ONLY:
 EVENT(webkitpresentationmodechanged)
 EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
 EXPECTED (video.webkitDisplayingFullscreen == 'false') OK
-EXPECTED (video.paused == 'false') OK
+EXPECTED (video.paused == 'false'), OBSERVED 'true' FAIL
 END OF TEST
Comment 1 Radar WebKit Bug Importer 2021-03-16 18:29:34 PDT
<rdar://problem/75505158>
Comment 2 Robert Jenner 2021-03-16 18:30:43 PDT
I have updated the expectations for this test here:
https://trac.webkit.org/changeset/274545/webkit
Comment 3 Robert Jenner 2021-03-16 18:41:49 PDT
I have reproduced the timeout at ToT for macOS release using the following test:

run-webkit-test media/media-fullscreen-return-to-inline.html --iterations 1000 -f

I cannot reproduce the text failures because those only occur on an Apple Silicon Mac, and I do not have access to one.
Comment 4 Ryan Haddad 2021-03-22 17:22:33 PDT
History link for both x86 and arm64 results: https://results.webkit.org/?suite=layout-tests&test=media%2Fmedia-fullscreen-return-to-inline.html