Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DRAirey1 opened this issue Oct 9, 2024 · 4 comments
Open

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

DRAirey1 opened this issue Oct 9, 2024 · 4 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@DRAirey1
Copy link

DRAirey1 commented Oct 9, 2024

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

@DRAirey1 DRAirey1 added the bug Something isn't working label Oct 9, 2024
@champnic
Copy link
Member

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

@champnic champnic added the tracked We are tracking this work internally. label Oct 10, 2024
@hyptocrypto2
Copy link

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
Copy link
Author

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants