Bug 215929 - [ macOS iOS ] compositing/video/poster.html is a flaky failure
Summary: [ macOS iOS ] compositing/video/poster.html is a flaky failure
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-08-28 08:58 PDT by Hector Lopez
Modified: 2023-12-31 22:44 PST (History)
5 users (show)

See Also:


Attachments
Expected image (56.07 KB, image/png)
2020-08-28 09:00 PDT, Hector Lopez
no flags Details
Actual image (164.23 KB, image/png)
2020-08-28 09:01 PDT, Hector Lopez
no flags Details
Diff image (64.71 KB, image/png)
2020-08-28 09:01 PDT, Hector Lopez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hector Lopez 2020-08-28 08:58:39 PDT
compositing/video/poster.html

Test is a flaky failure according to history on macOS and iOS. First occurrence of failure on macOS is at r250985. There was no failures on macOS between r255329 and r261664 but there were a group of crashes and timeouts in this period which may be unrelated. First occurrence of failure on iOS is at r261698.

Possible related cases:

https://bugs.webkit.org/show_bug.cgi?id=206678

https://bugs.webkit.org/show_bug.cgi?id=206916

History:
https://results.webkit.org/?suite=layout-tests&test=compositing%2Fvideo%2Fposter.html&platform=mac&platform=ios&limit=50000

Diff:
https://build.webkit.org/results/Apple%20iOS%2013%20Simulator%20Release%20WK2%20(Tests)/r266275%20(6433)/compositing/video/poster-diffs.html

or see attachments
Comment 1 Radar WebKit Bug Importer 2020-08-28 08:59:02 PDT
<rdar://problem/67943379>
Comment 2 Hector Lopez 2020-08-28 09:00:56 PDT
Created attachment 407472 [details]
Expected image
Comment 3 Hector Lopez 2020-08-28 09:01:35 PDT
Created attachment 407473 [details]
Actual image
Comment 4 Hector Lopez 2020-08-28 09:01:55 PDT
Created attachment 407474 [details]
Diff image
Comment 5 Hector Lopez 2020-08-28 09:10:15 PDT
Test expectation while investigated:

https://trac.webkit.org/changeset/266279/webkit

Test expectation for macOS and iOS wk1 already in place.
Comment 6 Ahmad Saleem 2023-12-31 22:44:29 PST
If I understand the images correctly, it seems that we fail to load 'poster' and we have different aspect ratio. So it has two issue: 1) Flaky 2) Wrong aspect ratio.

I stumbled across because I was looking into one of Blink commit:

https://chromium.googlesource.com/chromium/blink/+/4553a07a51b9a38011642f5ccd194c1c059f20e6

In which following was modified:

(WebKit function)

https://searchfox.org/wubkat/rev/af9971e796398c1d012ef5df9a09ed580d19bd17/Source/WebCore/rendering/RenderImage.cpp#425

bool RenderImage::shouldDisplayBrokenImageIcon() const
{
    return imageResource().errorOccurred();
}

to

bool RenderImage::shouldDisplayBrokenImageIcon() const
{
    return imageResource().errorOccurred() && !isVideo();
}

and then it will leads to:

https://searchfox.org/wubkat/rev/af9971e796398c1d012ef5df9a09ed580d19bd17/Source/WebCore/rendering/RenderImage.cpp#889

to maintain aspect ratio.

Just documenting here.