JXBrowser stops loading when interact with JavaFX components

239 views Asked by At

This only happens in Mac

In the JavaFX Application if I displayed a ContextMenu or MenuItem the JXBrowser thread stops loading the webpage and when I dismiss them the page continue loading.

How can I avoid the JXBrowser thread stop loading a web page and interacting with JavaFX?

I'm currently using JXBrowser 6.9 but this also happens in previous versions.

1

There are 1 answers

2
Artem Trofimov On BEST ANSWER

When you use JxBrowser in heavyweight mode on Mac, the underlying Chromium engine runs inside Java process and uses the same AppKit thread as JavaFX. In case something blocks this thread, the Chromium engine is also blocked. I recommend that you use lightweight mode and multi-process architecture by setting "jxbrowser.ipc.external=true" VM parameter on Mac.