On Wed, 18 Mar 2026 15:38:14 GMT, Jay Bhaskar <[email protected]> wrote:
>> **Issue:** Animated GIF images displayed in a WebView show only the first
>> frame and do not animate. This occurs regardless of how the GIF is loaded:
>> <img> tag with file:/// URL via WebEngine.loadContent()
>> <img> tag with file:/// URL via WebEngine.load() loading an HTML file
>>
>> Solution : Animation was not working because the decoder never reported
>> Complete, so WebKit never started the animation engine. Make the status
>> complete once the full frame is received.
>
> Jay Bhaskar has updated the pull request incrementally with one additional
> commit since the last revision:
>
> changes recommended by review
Change looks good, verified that the test fails without fix and passes with fix.
Providing a few comments on the test program.
tests/manual/web/giftest/GifImageTestApp.java line 2:
> 1: /*
> 2: * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
Copyright year should be 2026.
tests/manual/web/giftest/GifImageTestApp.java line 66:
> 64:
> 65: WebView webView = new WebView();
> 66: WebEngine webEngine = webView.getEngine();
webEngine is unused, can be removed
tests/manual/web/giftest/GifImageTestApp.java line 70:
> 68: loadButton.setOnAction(e -> {
> 69: URL url = this.getClass().getResource("giftest.html");
> 70: System.out.println(url);
print statement can be removed.
-------------
Changes requested by arapte (Reviewer).
PR Review: https://git.openjdk.org/jfx/pull/2111#pullrequestreview-3979563713
PR Review Comment: https://git.openjdk.org/jfx/pull/2111#discussion_r2964079984
PR Review Comment: https://git.openjdk.org/jfx/pull/2111#discussion_r2964080621
PR Review Comment: https://git.openjdk.org/jfx/pull/2111#discussion_r2964081153