MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
449 stars 55 forks source link

[Problem/Bug]: IsPasswordAutosaveEnabled doesn't work. #4857

Open DRAirey1 opened 2 weeks ago

DRAirey1 commented 2 weeks ago

What happened?

Password autofill doesn't work. Take the sample application from https://github.com/MicrosoftEdge/WebView2Samples. Update the WebView2_CoreWebView2Initialized function to be:

        private async void WebView2_CoreWebView2Initialized(WebView2 sender, CoreWebView2InitializedEventArgs args)
        {
            await sender.EnsureCoreWebView2Async();
            sender.CoreWebView2.Settings.IsPasswordAutosaveEnabled = true;

            if (args.Exception != null)
            {
                StatusUpdate($"Error initializing WebView2: {args.Exception.Message}");
            }
            else
            {
                SetTitle(sender);
            }
        }

Then run the sample application with a site that uses password authentication. (e.g. https://us.etrade.com/home/welcome-back). Nothing happens to the form's password field.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

129.0.2792.79

SDK Version

2651.64

Framework

WinUI3/WinAppSDK

Operating System

Windows 11

OS Version

23H2

Repro steps

As per above. Take the sample app for WinUI. Upgrade to the latest, stable packages of everything, then attempt to enable password autofill as per the code above. No attempt is made to save or autofill the password.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

AB#54363998

champnic commented 2 weeks ago

@DRAirey1 Thanks for opening this issue! I'm adding it to our internal tracker.

hyptocrypto2 commented 3 days ago

Bump. Im facing the same issue. Querying GetIsPasswordAutoFillEnabled returns true as well. General autofill is working and usernames are being saved in Default/Login \Data. But not passwords.

DRAirey1 commented 3 days ago

@DRAirey1 Thanks for opening this issue! I'm adding it to our internal tracker.

While I appreciate you adding it to your internal tracker, I'd appreciate a fix or a work-around even more.

hyptocrypto2 commented 3 days ago

@DRAirey1 Have you tried rolling back versions of Webview2 to see if this regression goes away? Wondering if its even worth the effort.