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

[WebView] WebView.getEngine().load() fails to load web pages

    Details

    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10 x86 (32Bit/64Bit)
      openjdk8 (java.runtime.version: 1.8.0_252-b14, javafx.runtime.version: 8.0.252-b02),
      openjdk11 (java.runtime.version: 11.0.7+10-LTS, javafx.runtime.version: 11.0.7+1),
      openjdk13(java.runtime.version: 13.0.3+3-MTS, javafx.runtime.version: 13.0.3+1),


      A DESCRIPTION OF THE PROBLEM :
      The operation of web pages by the WebView-class no longer works in the usual way.

      REGRESSION : Last worked in version 8

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Execute the source code snippet. Click on the "Google Apps" button. There is no effect. No dialog is shown.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      With the openjdku232 (java.runtime.version: 1.8.0_232-b18) it still worked. The "Google Apps" - dialog starts.
      ACTUAL -
      No "Google-Apps" - dialog is shown.

      ---------- 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 BrowserFX extends Application
      {
        @Override
        public void start(Stage stage)
        {
          stage.setTitle("JavaFX WebView Example");
          WebView webView = new WebView();
          webView.getEngine().load("https://www.google.de");
          webView.getEngine().setJavaScriptEnabled(true);
          VBox vBox = new VBox(webView);
          Scene scene = new Scene(vBox, 960, 600);
          stage.setScene(scene);
          stage.show();

        }

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

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

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: