After implementing JDK-8309916, we can load webpages in WebView which get rendered with metal pipeline.
It is observed that on scrolling of loaded webpage for some time, a message gets logged on terminal saying - "Context leak detected, CoreAnalytics returned false"
This bug is to analyze and fix this leak.
Steps to reproduce: use javafx metal sandbox repo
1) Build apps
2) Launch HelloWebview demo -
java @./build/run.args -Dcom.sun.webkit.useHTTP2Loader=false -cp "<Path to metal sandbox>/rt/apps/toys/Hello/dist/Hello.jar" hello.HelloWebView
3) Verify that it loads the default webpage.
4) start scrolling till the end of the webpage. (If the context leak message does not appear on terminal, keep scrolling up and down multiple times)