Bug 208803

Summary: REGRESSION(r257977): [GTK] http/tests/media/hls/video-cookie.html is a flaky failure
Product: WebKit Reporter: Diego Pino <dpino>
Component: MediaAssignee: Enrique Ocaña <eocanha>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eocanha, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, pnormand, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Diego Pino 2020-03-09 03:12:22 PDT
Diff:

--- /home/igalia/dpino/workspace/webkit-gtk/layout-test-results/retries/http/tests/media/hls/video-cookie-expected.txt
+++ /home/igalia/dpino/workspace/webkit-gtk/layout-test-results/retries/http/tests/media/hls/video-cookie-actual.txt
@@ -1,4 +1,4 @@

-EVENT(play)
+EVENT(stalled) TEST(false) FAIL
 END OF TEST
Comment 1 Enrique Ocaña 2020-03-09 03:36:31 PDT
Thanks for finding this regression. It's caused by my patch from bug https://bugs.webkit.org/show_bug.cgi?id=205801 (doesn't happen without it, happens with it).

I'm having a look at how to fix it.
Comment 2 Enrique Ocaña 2020-03-09 10:22:34 PDT
Created attachment 393049 [details]
Patch
Comment 3 Enrique Ocaña 2020-03-09 10:29:21 PDT
Before the fix for bug 205801, when a streaming URL stalled a little bit or went slower than expected a duration for the stream was automatically (wrongly) set by WebKit GStreamer. Having a duration it was easier to trigger the end of the download when the actual end of a live stream was reached (and usually much before that).

After the fix for bug 205801 the live streams kept their infinite duration. When the server cut the stream, WebKit GStreamer didn't have a way to tell the difference between that situation and a real stall (because of network/server conditions), so it concluded it was a stall.

This patch fixed the test to "help" WebKit a little bit avoiding live streams. After all, testing for a cookie has nothing to do with live or non-liveness.
Comment 4 Enrique Ocaña 2020-03-09 10:37:10 PDT
Created attachment 393052 [details]
Patch
Comment 5 Enrique Ocaña 2020-03-10 02:45:27 PDT
Created attachment 393128 [details]
Patch
Comment 6 WebKit Commit Bot 2020-03-10 06:56:04 PDT
Comment on attachment 393128 [details]
Patch

Clearing flags on attachment: 393128

Committed r258205: <https://trac.webkit.org/changeset/258205>
Comment 7 WebKit Commit Bot 2020-03-10 06:56:06 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2020-03-10 06:57:15 PDT
<rdar://problem/60271204>