JDK-8175351 : JavaFX WebView Hanging when maximizied
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u121
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2017-02-21
  • Updated: 2017-03-09
  • Resolved: 2017-02-22
Related Reports
Duplicate :  
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.


Comments
JDK 9 has an updated WebKit which is also in the recently-posted JDK 8u152-ea build. It is already fixed for 8u too. Closing as a duplicate of JDK-8166999 (the latest WebKit upgrade).
22-02-2017