Page 1 of 1

expose the settings of WebView2 in the GlobalWebView2Loader ?

Posted: Thu Apr 11, 2024 10:16 am
by 2eck
Would it be possible to expose the settings of WebView2 in the GlobalWebView2Loader ?

Im interestd in enableling PasswordAutofill likie in GlobalWebView2Loader.Settings.IsPasswordAutofillEnabled := true;

Re: expose the settings of WebView2 in the GlobalWebView2Loader ?

Posted: Thu Apr 11, 2024 12:24 pm
by salvadordf
Hi,

That property is available in TWVBrowserBase.IsGeneralAutofillEnabled and TWVBrowserBase.IsPasswordAutosaveEnabled.

First you need to call TWVBrowserBase.CreateBrowser and wait for the TWVBrowserBase.OnAfterCreated event before getting or setting those properties.