JDK-8136466 : [regression] [WebView] Load single page application from jar
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u60
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_8
  • CPU: x86
  • Submitted: 2015-09-11
  • Updated: 2017-08-03
  • Resolved: 2015-10-13
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 8 JDK 9
8u72Fixed 9Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.3.9600]

A DESCRIPTION OF THE PROBLEM :
Our java application uses JavaFX���s WebView to load a single page application which should be available while the user is offline.

The single page application will be delivered by a jar file. This case works without any problem by using JDK8u51, but something changed in case of JDK8u60.
Our relative referenced javascript files (inside the same package) will not be loaded by the WebView and therefore our application doesn���t work.

Eclipse project which simulates this behaviour:
https://drive.google.com/file/d/0B7P_rknS1TWxVFNHRURwZnpkMDA/view?usp=sharing

Result JDK 8u51:
https://drive.google.com/file/d/0B7P_rknS1TWxaVo5Y1RoZHlVdzg/view?usp=sharing

Result JDK 8u61
https://drive.google.com/file/d/0B7P_rknS1TWxVUVncFBfX0thYjQ/view?usp=sharing

REGRESSION.  Last worked in version 8u51

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Eclipse project which simulates this behaviour:
https://drive.google.com/file/d/0B7P_rknS1TWxVFNHRURwZnpkMDA/view?usp=sharing


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Result JDK 8u51:
https://drive.google.com/file/d/0B7P_rknS1TWxaVo5Y1RoZHlVdzg/view?usp=sharing
ACTUAL -
Result JDK 8u61
https://drive.google.com/file/d/0B7P_rknS1TWxVUVncFBfX0thYjQ/view?usp=sharing

Images and Javascript will not be loaded


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Eclipse project which simulates this behaviour:
https://drive.google.com/file/d/0B7P_rknS1TWxVFNHRURwZnpkMDA/view?usp=sharing

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

CUSTOMER SUBMITTED WORKAROUND :
No workaround


Comments
It seems like an oversight. A regression test should be created for this case.
27-11-2015

Why there is no regression test?
26-11-2015

http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/d4f8c9496683
02-10-2015

Looks good to me.
02-10-2015

Based on the evaluation I am raising the priority of this regression to P2. It is a serious regression that impacts usability of WebView in deployed JavaFX applications.
01-10-2015