JetBrains: Make sure the web view is not empty after closing and reopening the popup.
Created by: vdavid
Problem
Sometimes the web view content disappears after opening and closing the popup several times (but not always). Then it looks like this:
(Video: at 0:30)
The console is pretty messy, so not sure if there's always a trace of an error when this happens, but it might be that uncaught errors on the Java side cause the problem.
Solution
Make sure the web view content doesn't disappear (or is gracefully refilled), even in case of uncaught errors. Test it with both uncaught errors on the Java-side and the JS-side.