There seems to be a regression problem in 14.0.1 which causes a massive resource leak of Windows "User Objects" when using the WebView. The problem does not seem to happen with OpenJFX 14.
I ran 2 instances of the sample, one with OpenJFX 14 and another with OpenJFX 14.0.1. After browsing the same links for 5-10 minutes, I took a reading from the "Task Manager" (image attached).
Steps to reproduce:
1. Open the Windows Task manager, go to the "Details" tab, right click any column header and from the resulting "Select Columns" dialog check the "User objects" checkbox.
2. Run the attached sample using OpenJFX 14.0.1.
3. "User Objects" increase as you navigate through the website and continue reading different news articles.
** Sample **
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class WebViewUserObjectLeakage extends Application {
@Override
public void start(Stage stage) {
WebView webview = new WebView();
webview.getEngine().load("https://cnn.com");
Scene scene = new Scene(new StackPane(webview));
stage.setScene(scene);
stage.setMaximized(true);
stage.show();
}
public static void main(String[] args) {
launch();
}
}