When using TEdgeBrowser directly it is possible to set custom UserDataFolder property value. Is there a way to set it when using TWebBrowser with Edge engine?
Edit: found workaround: set WEBVIEW2_USER_DATA_FOLDER
environment variable before creating component:
When creating a WebView2Environment the following environment variables are verified:
WEBVIEW2_BROWSER_EXECUTABLE_FOLDER WEBVIEW2_USER_DATA_FOLDER WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS WEBVIEW2_RELEASE_CHANNEL_PREFERENCE
Starting with Delphi 11.2 there is now TWeBrowser.EdgeUserDataFolder property