Bug 183214 - [GTK] compositing/video/poster.html: video bar inconsistently filled after 'canplaythrough'
Summary: [GTK] compositing/video/poster.html: video bar inconsistently filled after 'c...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-28 09:45 PST by Alicia Boya García
Modified: 2018-02-28 09:45 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alicia Boya García 2018-02-28 09:45:27 PST
The following test has a ImageOnlyFailure flake:

compositing/video/poster.html

https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r229090%20(5649)/compositing/video/poster-diffs.html

It contains this code:

<video controls id="v" poster="../resources/simple_image.png"></video>
<script>
var v = document.getElementById("v");
if (window.testRunner) {
    testRunner.waitUntilDone();
    v.addEventListener("canplaythrough", function() {
        testRunner.notifyDone();
    });
}
v.setAttribute("src", findMediaFile("video", "../resources/video"));
</script>

The video poster looks perfectly fine, the problem is with the controls; particularly the bar.

notifyDone() is called after the "canplaythrough" event. At that point, enough video should be buffered for smooth playback, but most of the time when the screenshot is taken the bar is still empty.