Bug 226899

Summary: REGRESSION: (r278544) [ Mac-wk1 ] media/media-continues-playing-after-replace-source.html is a flaky failure
Product: WebKit Reporter: Truitt Savell <tsavell>
Component: MediaAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, cdumez, changseok, darin, eric.carlson, esprehn+autocc, ews-watchlist, ggaren, glenn, gyuyoung.kim, jer.noble, peng.liu6, philipj, rniwa, sergio, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=227367
Attachments:
Description Flags
Patch none

Description Truitt Savell 2021-06-10 14:31:01 PDT
media/media-continues-playing-after-replace-source.html

this test has been flaky failing sense the changes in https://trac.webkit.org/changeset/278544/webkit

History:
https://results.webkit.org/?suite=layout-tests&test=media/media-continues-playing-after-replace-source.html

Diff:
--- /Volumes/Data/worker/bigsur-debug-tests-wk1/build/layout-test-results/media/media-continues-playing-after-replace-source-expected.txt
+++ /Volumes/Data/worker/bigsur-debug-tests-wk1/build/layout-test-results/media/media-continues-playing-after-replace-source-actual.txt
@@ -5,7 +5,7 @@
 EVENT(playing)
 EXPECTED (testElement.currentTime > '0') OK
 Replacing the media's source element:
-EXPECTED (testElement.currentTime == '0') OK
+EXPECTED (testElement.currentTime == '0'), OBSERVED '0.205980314234375' FAIL
 EXPECTED (testElement.currentTime > '0') OK
 END OF TEST
Comment 1 Radar WebKit Bug Importer 2021-06-10 14:31:42 PDT
<rdar://problem/79160701>
Comment 2 Truitt Savell 2021-06-10 14:33:43 PDT
This test is effecting wk1 queues
Comment 3 Chris Dumez 2021-06-10 14:33:53 PDT
Looking.
Comment 4 Chris Dumez 2021-06-10 15:41:16 PDT
Created attachment 431147 [details]
Patch
Comment 5 Ryosuke Niwa 2021-06-10 16:58:15 PDT
Comment on attachment 431147 [details]
Patch

Maybe we can do the same for other media related code where we use callOnMainThread?
Comment 6 Chris Dumez 2021-06-10 16:58:47 PDT
(In reply to Ryosuke Niwa from comment #5)
> Comment on attachment 431147 [details]
> Patch
> 
> Maybe we can do the same for other media related code where we use
> callOnMainThread?

Probably, I plan to follow up.
Comment 7 EWS 2021-06-10 18:02:12 PDT
Committed r278746 (238707@main): <https://commits.webkit.org/238707@main>

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