Problems with multiple WebView

Matthieu BROUILLARD matthieu at brouillard.fr
Thu May 19 09:25:28 UTC 2016


Hi all,

Inside our application we are integrating web applications using JavaFX
WebViews.

We are facing issues when opening several webviews on the same URLs (even
with different parameters).
The states reported to listeners registered using

*view.getEngine().getLoadWorker().stateProperty().addListener(...)*

become totally incoherent.

I have created a simple reproducer test class to demo the issue
<https://gist.github.com/AWXGX/1ee902256169c612d97f0722b79f47c6#file-multiplewebviewbug-java>
(1).

The gist contains also different executions results in the 3 tested 'modes':
- multiple views opening the exact same URL
- multiple views opening the same URL with different parameters (html app
scenario)
- multiple views opening different URLs

Only the later is working correctly.

Did someone already faced that?
I have not found bugs (or only closed ones JDK-8094208, JDK-8129398)
related to that, shall I open one?

(1):
https://gist.github.com/AWXGX/1ee902256169c612d97f0722b79f47c6#file-multiplewebviewbug-java


More information about the openjfx-dev mailing list