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

WebEngine fails to load relative content only when started via Webstart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 8u60
    • javafx
    • web
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_60"
      Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
      Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      We have a Swing GUI with an TinyMCE integrated using a JavaFX WebView component.
      The application ist distributed/started using Webstart.

      Starting with Java 8u60 apparently the WebView WebEngine stopped to load content with is referenced relatively to the loaded web page - like this:
      <script src="editor_init.js"></script>

      The page is loaded using:
      final URL urlResource = EncapsulatedTinyMce.class.getResource("editor.html");
      webEngine.load(urlResource.toURI().toString());

      It appears that relative content just does not load.

      Note that this happens only when using Webstart and Java 8u60.

      When the application ist started without using Webstart or the application is started using a version of Java before Java 8u60 it works fine.

      REGRESSION. Last worked in version 8u51

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_51"
      Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Start a test application via Webstart with loads a web page from the classpath into a WebView.
      The web page itself relatively references a Javascript file like this:
      <script src="editor_init.js"></script>

      The script will not be executed when using Java 8u60.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            ghb Guru Hb (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: