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

JavaFX WebView Hanging when maximizied

    XMLWordPrintable

Details

    • web
    • generic
    • generic

    Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      Java/FX web view hangs(freezes) when its containing stage is maximized and minimized and then restored it hangs.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Launch the application. Maximize the stage and iconify and then restore.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Can not perform any action web-view.
      ACTUAL -
      Web view freezing.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.layout.VBox;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;

      public class WebViewTest extends Application {

          @Override public void start(Stage primaryStage) throws Exception {
              primaryStage.setTitle("WebView Test");
              WebView webView = new WebView();
              WebEngine engine = webView.getEngine();
              engine.load("http://google.com");
              primaryStage.setScene(new Scene(new VBox(webView)));
              primaryStage.show();
          }
          
          public static void main(String[] args) {
              launch(args);
          }

      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      After hanging (freeze), resizing or restore down helps.

      Attachments

        Issue Links

          Activity

            People

              pmangal Priyanka Mangal (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: