Skip to content

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

Open
@DRAirey1

Description

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

Metadata

Assignees

Labels

bugSomething isn't workingtrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions