-
Bug
-
Resolution: Unresolved
-
P4
-
8, 9
Reproducible: always for new webkit
Is a regression: No
Is a platform specific: reproducible on macos and linux.
Java crashes when trying to access dom object using WebEngine.execute method.
Steps to reproduce (example attached):
1. Create javafx application with webview (gui is non necessary).
2. Try to access any dom element with javascript: engine.executeScript("document.createElement('span')")
3. Access that variable (e.g. call toString()) from outside of application thread
Expected result: a kind of exception is thrown, because webengine objects must be manipulated only from application thread ("WebEngine objects must be created and accessed solely from the JavaFX Application thread. This rule also applies to any DOM and JavaScript objects obtained from the WebEngine object.")
Actual result: java crashed with segfault.
Is a regression: No
Is a platform specific: reproducible on macos and linux.
Java crashes when trying to access dom object using WebEngine.execute method.
Steps to reproduce (example attached):
1. Create javafx application with webview (gui is non necessary).
2. Try to access any dom element with javascript: engine.executeScript("document.createElement('span')")
3. Access that variable (e.g. call toString()) from outside of application thread
Expected result: a kind of exception is thrown, because webengine objects must be manipulated only from application thread ("WebEngine objects must be created and accessed solely from the JavaFX Application thread. This rule also applies to any DOM and JavaScript objects obtained from the WebEngine object.")
Actual result: java crashed with segfault.
- relates to
-
JDK-8098296 Update to Newer Version of WebKit
-
- Resolved
-
-
JDK-8116651 EXCEPTION_ACCESS_VIOLATION in jfxwebkit.dll when doing JSObject.toString when JSObject is passed through Event.getTarget in EventListener
-
- Closed
-
-
JDK-8119390 JSObject.toString() crashes the VM
-
- Closed
-