RESOLVED FIXED 167174
REGRESSION(r206156): Animated images are repeated one extra iteration than the value which is saved in the image file
https://bugs.webkit.org/show_bug.cgi?id=167174
Summary REGRESSION(r206156): Animated images are repeated one extra iteration than th...
Said Abou-Hallawa
Reported 2017-01-18 14:17:50 PST
Created attachment 299180 [details] red-green-blue-repeat-2.gif Open the attached files: 1. red-green-blue-repeat-1.gif: loopCount == 1. The image should be animated only once. 2. red-green-blue-repeat-2.gif: loopCount == 2. The image should be animated twice. RESULT: All images are animated one extra iteration than what it should do. NOTICE: This regression affects the case where loopCount == 1 or the case when it is missing from the file. For the cases loopCount > 1, the bug did exist before this regression.
Attachments
red-green-blue-repeat-2.gif (6.40 KB, image/gif)
2017-01-18 14:17 PST, Said Abou-Hallawa
no flags
red-green-blue-repeat-1.gif (6.38 KB, image/gif)
2017-01-18 14:18 PST, Said Abou-Hallawa
no flags
Patch (2.30 KB, patch)
2017-01-18 14:44 PST, Said Abou-Hallawa
no flags
Archive of layout-test-results from ews100 for mac-elcapitan (823.48 KB, application/zip)
2017-01-18 15:39 PST, Build Bot
no flags
Patch (8.09 KB, patch)
2017-01-19 12:13 PST, Said Abou-Hallawa
no flags
Patch (8.09 KB, patch)
2017-01-19 12:26 PST, Said Abou-Hallawa
no flags
Patch (8.55 KB, patch)
2017-01-19 16:18 PST, Said Abou-Hallawa
no flags
Patch (8.55 KB, patch)
2017-01-19 17:22 PST, Said Abou-Hallawa
no flags
Patch (8.86 KB, patch)
2017-01-19 18:07 PST, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 1 2017-01-18 14:18:19 PST
Created attachment 299181 [details] red-green-blue-repeat-1.gif
Said Abou-Hallawa
Comment 2 2017-01-18 14:44:35 PST
Said Abou-Hallawa
Comment 3 2017-01-18 14:44:57 PST
Working on a layout test.
Build Bot
Comment 4 2017-01-18 15:39:51 PST
Comment on attachment 299187 [details] Patch Attachment 299187 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2911712 New failing tests: imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-protocol-setter-non-broken.html
Build Bot
Comment 5 2017-01-18 15:39:55 PST
Created attachment 299196 [details] Archive of layout-test-results from ews100 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Simon Fraser (smfr)
Comment 6 2017-01-18 16:08:49 PST
Comment on attachment 299187 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299187&action=review > Source/WebCore/ChangeLog:10 > + all other cases. Having repetitionCount() returns zero for loopCount = 1 "Having repetitionCount() return zero" > Source/WebCore/ChangeLog:12 > + breaks the animation loop after one iteration. But it was wrong for all "break"
Simon Fraser (smfr)
Comment 7 2017-01-18 16:09:07 PST
Comment on attachment 299187 [details] Patch Can we test this?
Said Abou-Hallawa
Comment 8 2017-01-19 12:13:19 PST
Said Abou-Hallawa
Comment 9 2017-01-19 12:26:50 PST
Said Abou-Hallawa
Comment 10 2017-01-19 16:18:12 PST
Radar WebKit Bug Importer
Comment 11 2017-01-19 16:18:41 PST
Said Abou-Hallawa
Comment 12 2017-01-19 16:19:21 PST
Comment on attachment 299281 [details] Patch The layout test is cleaned a little.
Said Abou-Hallawa
Comment 13 2017-01-19 17:22:14 PST
Said Abou-Hallawa
Comment 14 2017-01-19 18:07:30 PST
Said Abou-Hallawa
Comment 15 2017-01-19 18:09:23 PST
Comment on attachment 299296 [details] Patch Using <h2> in the layout test caused it to fail on ios-simulator. Changing it to <p> seems to fix the issue locally.
WebKit Commit Bot
Comment 16 2017-01-19 19:57:32 PST
Comment on attachment 299296 [details] Patch Clearing flags on attachment: 299296 Committed r210951: <http://trac.webkit.org/changeset/210951>
WebKit Commit Bot
Comment 17 2017-01-19 19:57:38 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.