JDK-8301699 : JavaScript issues when running a SAPUI5 Web application in JavaFX WebView
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: jfx20,8u351
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2023-01-26
  • Updated: 2024-07-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx24Unresolved
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Works in JRE 1.8 341, breaks in JRE in 351, possibly related to https://bugs.openjdk.org/browse/JDK-8285881

A DESCRIPTION OF THE PROBLEM :
We are getting JavaScript issues when running a SAPUI5 Web application in a JavaFX WebView on JRE 1.8 351 and later.

REGRESSION : Last worked in version 8u361

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Open a simple UI5 application in a JavaFX WebView. An example application is deployed to <link>

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Page loads successfully
ACTUAL -
Blank screen

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

public class Main extends Application {

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

    public void start(Stage primaryStage) {
        primaryStage.setTitle("JavaFX WebView Example");

        WebView webView = new WebView();

        webView.getEngine().load("<Link>");

        VBox vBox = new VBox(webView);
        Scene scene = new Scene(vBox, 960, 600);

        primaryStage.setScene(scene);
        primaryStage.show();

    }
}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Revert to an earlier JRE release, however customers need to be running latest release due to security concerns.

FREQUENCY : always



Comments
We just integrated WebKit 615.1 into JavaFX 21, so this needs to be retested.
03-02-2023

Checked with attached testcase(simple html containing javascript) in Windows 10, Issue is not reproducible Test Result ========= 8u361: Pass openjfx11.0.18: Pass openjfx17:Pass openjfx19.0.2:Pass openjfx20ea11: Pass
02-02-2023