JDK-8137247 : java 8u60 doesn't load local content in webview
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u60
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc_64
  • Submitted: 2015-09-22
  • Updated: 2015-10-03
  • Resolved: 2015-10-03
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 10.0.10240]

A DESCRIPTION OF THE PROBLEM :
Local HTML pages loaded with webview  (example  webView = new WebView();
webView.getEngine().load(Theory.class.getResource("tree.html").toExternalForm()); )
doesn't load their local files (like images, css,, javascript files) saved in jar. (example <img src="images/image.png" alt="Graph"  class="center-block"  />, where image.png is saved in folder named image in jar file.)

You cant load HTML page with local content saved in same jar now.  In java 8u51 this worked fine.
 

REGRESSION.  Last worked in version 8u51

ADDITIONAL REGRESSION INFORMATION: 
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)

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create HTML file with images or css loaded in this html (like  <img src="image.png> and put this HTML page and tihs image on same spot in jar file. Then load this page via webView.getEngine().load(). It will load HTML page content without image.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Load HTML page with image.
ACTUAL -
HTML page without image visible.

REPRODUCIBILITY :
This bug can be reproduced always.

SUPPORT :
YES


Comments
Since this is a duplicate of JDK-8136466, then it can be closed as a duplicate.
01-10-2015