MicrosoftEdge / WebView2Feedback

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

[Problem/Bug]: After enabling IsPasswordAutosaveEnabled in WebView2, accessing phpMyAdmin causes a crash. #4868

Open atfeel opened 1 month ago

atfeel commented 1 month ago

What happened?

web.CoreWebView2.Settings.IsPasswordAutosaveEnabled = true; web.CoreWebView2.Settings.IsGeneralAutofillEnabled = true;

phpMyAdmin 5.1.1

Logging into the account causes a crash.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.2739.15

SDK Version

No response

Framework

Winforms

Operating System

Windows 10

OS Version

No response

Repro steps

web.CoreWebView2.Settings.IsPasswordAutosaveEnabled = true; web.CoreWebView2.Settings.IsGeneralAutofillEnabled = true;

phpMyAdmin 5.1.1

Logging into the account causes a crash.

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

github-actions[bot] commented 1 month ago

Hi, @atfeel!

It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a comment?

WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): <UDF>\EBWebView\Crashpad\reports\. By default, the user data folder is created in the app's folder with a name like <App Exe Name>.exe.WebView2. Refer to Crash Diagnostics for more information.

Thank you for your cooperation!

atfeel commented 1 month ago

The path EBWebView\Crashpad\reports\ is empty.

I detected ExitCode = -2147483645 in the ProcessFailed event listener.

Confirmed that enabling IsPasswordAutosaveEnabled or IsGeneralAutofillEnabled and logging into a phpMyAdmin 5.1.1 account causes this crash to occur, while logging into accounts on other websites does not produce this issue.

Danielx64 commented 1 month ago

What happens if you set those to false and then log into phpmyadmin? Just want to rule out that is causing it

atfeel commented 1 month ago

What happens if you set those to false and then log into phpmyadmin? Just want to rule out that is causing it

Setting them to false prevents the crashes, but I need the automatic prompt to save usernames and passwords—I require this feature. The crash specifically happens when logging into a phpMyAdmin 5.1.1 account; I haven't tested other versions of phpMyAdmin. Additionally, some other websites also cause a crash when prompting to save login details. I hope the developers can fix this bug in WebView2.

atfeel commented 1 month ago

Is there a WebView2 developer here? I hope to get help in fixing a bug.

atfeel commented 1 month ago

!!