Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8167675

Animated gifs are not working

XMLWordPrintable

    • web
    • x86_64
    • windows_7

        FULL PRODUCT VERSION :
        java version "1.8.0_102"
        Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
        Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.1.7601]java --ver

        A DESCRIPTION OF THE PROBLEM :
        If you load a page that contains animated gifs into WebView only static images would be shown.

        REGRESSION. Last worked in version 8u91

        ADDITIONAL REGRESSION INFORMATION:
        java version "1.8.0_91"
        Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
        Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run a javafx app that displays WebView with a page that contains an animiated gif image.



        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Gif image at http://forum.awd.ru/download/file.php?avatar=16743.gif is an animated crocodile
        ACTUAL -
        WebView displays a static image. Probably only first frame of gif is shown.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        package test;

        import javafx.application.Application;
        import javafx.scene.Scene;
        import javafx.scene.layout.Pane;
        import javafx.scene.layout.VBox;
        import javafx.scene.web.WebView;
        import javafx.stage.Stage;

        public class HelloWorld extends Application
        {

            @Override
            public void start( Stage primaryStage )
            {
                Pane root = new VBox();

                WebView web = new WebView();
                web.getEngine().load( "http://forum.awd.ru/download/file.php?avatar=16743.gif" );
                root.getChildren().add( web );

                Scene scene = new Scene( root, 300, 250 );

                primaryStage.setTitle( "Hello World!" );
                primaryStage.setScene( scene );
                primaryStage.show();
            }

            public static void main( String[] args )
            {
                launch( args );
            }
        }
        ---------- END SOURCE ----------

              arajkumar Arunprasad Rajkumar
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: