JDK-8137249 : WebEngine fails to load relative content only when started via Webstart
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u60
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2015-09-24
  • Updated: 2015-10-05
  • Resolved: 2015-10-05
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.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
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.


Comments
Fixed as part of JDK-8136466 http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/d4f8c9496683
05-10-2015

Reopen to close as duplicate.
05-10-2015

If the "EncapsulatedTinyMce" class and html and its sub-resource (editor.html and editor_init.js) is packaged in a jar and executed then it will be duplicate of JDK-8136466. With use case mentioned and when i tested locally (same attached as "RelativeResource.zip") the editor_init.js loads without any error. In either case this defect will be Fixed along with JDK-8136466 (if its loaded from jar) or Not reproducible (provided attachment).
03-10-2015

Is this a duplicate of JDK-8136466 ?
02-10-2015