This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
javafx-webkit in Java 8u111 and later uses weak references for JavaScript Objects. This may lead to unwanted GC and invocation of ViewModel's methods don't work.
Here is the test to show the problem: https://github.com/jtulach/html-java-api/commit/dc2ec873ce3eda1186d10112b2582a8b5e42c565
This should be the fix: https://github.com/jtulach/html-java-api/commit/ba6fa43237047d470e252e52fbcc25f686a06c43
Removal of debug messages: https://github.com/jtulach/html-java-api/commit/0911610a6446ab7ceddea5f5716f6846b47e155f
Fix doesn't work for u_102 and causes a new problem. We tried to use the fix with u_102 for a customer project. It doesn't change the behaviour function references seem to still get lost. Also it causes a new problem. With older versions enum type Properties are no longer correctly converted to String. Workaround: replace enums with String Unfortunately due to NDA I cannot share the customer project. But we can check in private.
The enum behavior is now specified, tested and fixed as of https://github.com/jtulach/html-java-api/commit/d000c1196182c2fa73dd6ed860d126f9187f91e7