MicrosoftEdge / WebView2Feedback

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

Using WebView2 to access https://login.salesforce.com/ results in RESULT_CODE_KILLED_BAD_MESSAGE when clicking in the password entry field #2130

Closed WildlifeSOS closed 2 years ago

WildlifeSOS commented 2 years ago

Description Use a WebView2 control to navigate to https://login.salesforce.com/ Log in correctly, end the app Do it again, the user is pre-populated Click in the password field and you get RESULT_CODE_KILLED_BAD_MESSAGE, the dev tools window is disconnected and a crash pad report is produced

Version SDK: .Net 4.8 Framework Runtime: 100.0.1154.0 canary Framework: WinForms OS: Win10 21H2

Expected behaviour is to be able to enter a password and continue

Screen shots

The url loads initially

1  Logon

When you click in the password field this happens

2  After clicking in password field

3  DevTools

AB#38039748

WildlifeSOS commented 2 years ago

I've tried refreshing but I have the same problem

WildlifeSOS commented 2 years ago

The crash pad reports are here

reports.zip

WildlifeSOS commented 2 years ago

I've since discovered it's not just that url that fails like this .... any with a password field hit the problem

WildlifeSOS commented 2 years ago

I've uninstalled Canary and installed the WebView2 runtime and that fixes the problem for me

champnic commented 2 years ago

Thanks for the bug report @JimWard2018! I've opened it on our backlog to take a look.

WildlifeSOS commented 2 years ago

When I hit the problem I had the Canary version of Edge installed (100.0.1154.0 canary) and The WebView2 NuGet package version 1.0.1072.54 installed in my WinForms .Net 4.8 application. The code was working at the end of my working day on Wednesday 2nd Feb; and was failing the next day in the morning on Thursday 3rd Feb. (I suspect the Canary version changed overnight)

I then uninstalled the canary version of Edge and downloaded and installed the Evergreen Bootstrapper from https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution which gave me version 98.0.1108.43 of the Microsoft Edge WebView2 Runtime and that fixed the problem for me.

So I am now running and testing with that version.

Did you see my comment which said that after logging the problem I found I had the same problem with any url having a password field in it.

From: jarno9981 @.> Sent: 08 February 2022 07:12 To: MicrosoftEdge/WebView2Feedback @.> Cc: Jim Ward @.>; Mention @.> Subject: Re: [MicrosoftEdge/WebView2Feedback] Using WebView2 to access https://login.salesforce.com/ results in RESULT_CODE_KILLED_BAD_MESSAGE when clicking in the password entry field (Issue #2130)

@JimWard2018https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJimWard2018&data=04%7C01%7Cjward%40smartcommunications.com%7Ce3396c23201e450c239708d9ead248d4%7C49c37f1af524491d8972a2ca439ac80f%7C0%7C0%7C637799011182728303%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=EE5rIJ3OVC0rGZXrrZj%2BLtDAvIyRfMrYwip%2FloBVAoQ%3D&reserved=0 i can acces the password field and type with it without to crash do you got standalone webview2 or the installer webview2

- Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftEdge%2FWebView2Feedback%2Fissues%2F2130%23issuecomment-1032280739&data=04%7C01%7Cjward%40smartcommunications.com%7Ce3396c23201e450c239708d9ead248d4%7C49c37f1af524491d8972a2ca439ac80f%7C0%7C0%7C637799011182728303%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=bs5rC9bqFpA2bdyU1HmM%2BZIWza1jnfDuOoAe6nTUhNI%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJRNPVQPYIZTPYLOCKG3PA3U2C63RANCNFSM5NO3ZZAA&data=04%7C01%7Cjward%40smartcommunications.com%7Ce3396c23201e450c239708d9ead248d4%7C49c37f1af524491d8972a2ca439ac80f%7C0%7C0%7C637799011182728303%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=NXXHnf4VGFm87ndDI3AsvVld5DbsBLqJK52lCfk7lfA%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cjward%40smartcommunications.com%7Ce3396c23201e450c239708d9ead248d4%7C49c37f1af524491d8972a2ca439ac80f%7C0%7C0%7C637799011182728303%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Fdj%2BzfvgSmE2AOiNb0Y3SQBd0u1EAaM%2FB0pLVJ1Ytz8%3D&reserved=0 or Androidhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cjward%40smartcommunications.com%7Ce3396c23201e450c239708d9ead248d4%7C49c37f1af524491d8972a2ca439ac80f%7C0%7C0%7C637799011182728303%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3LE%2FUcgx1pDHq7HZ3E3p%2FZuDfEjZyKpnGcuEdoMhJUc%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>


Jim Ward Senior Developer

t +44 20 8238 7410 | m @.*** smartcommunications.comhttps://www.smartcommunications.com/

[https://www.smartcommunications.com/wp-content/uploads/021_Aspire-Leaderboard_email_v2.jpg]

Click here to access the report to see why we have risen to the top of the Aspire CCM Leaderboard!https://smartcommunications.com/smart-communications-recognized-as-overall-leader-in-customer-communications-management-by-aspire/ Smart Communications is a trading name of SmartComms SC Limited which is registered in England under No. 4303041 whose registered office is at Catalyst House, 720 Centennial Court, Centennial Park, Elstree, Herts. WD6 3SY. Please consider the environment before printing. The contents of this e-mail are intended for the named addressee only. It contains confidential information. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

Follow us on LinkedInhttps://www.linkedin.com/company/15166060/admin/ and Twitterhttps://twitter.com/ccminnovators?lang=en

jarno9981 commented 2 years ago

@JimWard2018 i use the standalone fixed latest runtime with latest pre-release nuget

champnic commented 2 years ago

It looks like we just checked in a fix to runtime versions 100.0.1157.0+. Can you try the latest Canary and see if you are still seeing this crash?

WildlifeSOS commented 2 years ago

It works fine now; I've just tested Canary version 100.0.1160.0 with WebView2 NuGet package version 1.0.1108.44

champnic commented 2 years ago

@JimWard2018 That's good news, thanks for testing!