Bug 143471 - [GTK] Layout Test canvas/philip/tests/2d.drawImage.animated.poster.html is failing
Summary: [GTK] Layout Test canvas/philip/tests/2d.drawImage.animated.poster.html is fa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-04-07 02:53 PDT by Marcos Chavarría Teijeiro (irc: chavaone)
Modified: 2023-01-25 19:36 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Chavarría Teijeiro (irc: chavaone) 2015-04-07 02:53:48 PDT
The canvas/philip/tests/2d.drawImage.animated.poster.html layout test is failing on GTK+ after r181553 (https://trac.webkit.org/changeset/181553).

This revision implements APNG support.

The diff is the following:

--- /home/ch01/jhbuild/src/WebKit/WebKitBuild/Release/layout-test-results/canvas/philip/tests/2d.drawImage.animated.poster-expected.txt
+++ /home/ch01/jhbuild/src/WebKit/WebKitBuild/Release/layout-test-results/canvas/philip/tests/2d.drawImage.animated.poster-actual.txt
@@ -1,2 +1,2 @@ 
-Passed
+Failed assertion: got pixel [255,0,0,255] at (50,25), expected [0,255,0,255] +/- 2
Comment 1 Max Stepin 2015-04-09 02:01:36 PDT
According to APNG specs, the first frame can be marked hidden.

This test:
Frame 0: green (hidden)
Frame 1: red

This test assumes canvas drawImage() is sophisticated enough be able to return hidden apng frame (green).

Instead the image decoders in both Firefox and WebKit prefer not to keep the useless hidden frame in memory, so both return the first *visible* frame.

You can see Firefox draws red frame too:
http://w3c-test.org/2dcontext/drawing-images-to-the-canvas/2d.drawImage.animated.poster.html

So I think we should simply mark this test accordingly.
Comment 2 Diego Pino 2023-01-25 19:33:07 PST
There are no references to this bug in any TestExpectations. It's probable this bug was solved at some point but it wasn't marked as closed. I'm closing this bug now. If you think this bug report is still valid, please reopen it and add an entry to TestExpectations.
Comment 3 Radar WebKit Bug Importer 2023-01-25 19:36:28 PST
<rdar://problem/104678760>