JDK-8090035 : JavaFX browser can get stuck in an infinite loop when calling path.getTotalLength()
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-03-19
  • Updated: 2016-08-10
  • Resolved: 2015-09-18
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
Cloners :  
Description
It seems that the WebView JavaFx Browser can get stuck in an infinite loop when calling getTotalLength() on a particular svg <path> object.

Here are two Jsfiddles, the first one works, the second one gets in an infinite loop. The only difference is changing the last decimal of the path data from a 6 to a 7.

http://jsfiddle.net/UBsu2/
http://jsfiddle.net/UBsu2/1/

This problem is also exhibited in Chrome and Safari, but not in Firefox and IE9.

Comments
http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/aa51df7e1d41
18-09-2015

+1
17-09-2015

Tested on Mac. Looks great to me. +1
17-09-2015

+1
17-09-2015

Test application which loads webview with svg content and its path.getTotalLength() is shown in the webpage
17-09-2015

[~azvegint] Please review the fix merged from Chromium webrev patch : http://cr.openjdk.java.net/~psadhukhan/guru/webrev.00/
17-09-2015

Defect is fixed in chromium (which shares the same webkit) in their issue https://codereview.chromium.org/233063003. Will merge the fix done in chromium to our webkit
15-09-2015

SQE is ok to defer from 8u40.
18-11-2014

No resources to fix it in 8u40, moving to 9.
23-09-2014

We are sorry, but at this time we have no resources to work on WebView bugs for the 8u20 release. Unfortunately, we will have to defer them to 8u40.
23-05-2014