-
Notifications
You must be signed in to change notification settings - Fork 469
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
win: Crash in autofill::ShowSaveBubble #3796
Comments
From the call stack (and code here) it looks like another instance of #3763 (comment) (the part about FindBrowserWithTab). |
You can disable autofill as described at https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=19898&start=10#p55813 |
@mattwildgoose Can you provide the HTML (or URL) for reproducing these steps?
|
Thanks, found it at https://github.com/mattwildgoose/CefSharpIssue/blob/main/WebApp/wwwroot/Profile.html |
I'm also unable to reproduce this crash in cefclient (M130). The autofill bubble works as expected with |
Looks like the autocomplete code was substantially rewritten in https://issuetracker.google.com/issues/40281981 (~M129 timeframe), and this crashing code path is no longer triggered. |
@mattwildgoose Can you test if this issue is resolved for you in M129? Thanks. |
Closing this issue as likely fixed in M130 (and maybe M129). |
I had a similar problem using M129: Starting up with the --disable-features flag did not work. My workaround was to disable the settings in an CustomLifespanHandler.
Maybe this helps someone. |
Another potentially related crash in M130: https://magpcss.org/ceforum/viewtopic.php?f=6&t=20088&p=56658 |
This happens to me too. I couldn't replicate using OP's instructions since it looks like you need to enter some address-looking information to make it crash. Here is the HTML I used: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Profile</title>
</head>
<body>
<form novalidate="">
<label for="customerFirstName">First Name</label>
<input type="text" name="customerFirstName" id="customerFirstName" tabindex="0" data-qa="input-customerFirstName" autocomplete="given-name" aria-required="true" aria-invalid="true" aria-disabled="false" aria-errormessage="customerFirstName_error">
<br>
<label for="customerLastName">Last Name</label>
<input type="text" name="customerLastName" id="customerLastName" tabindex="0" data-qa="input-customerLastName" autocomplete="family-name" aria-required="true" aria-invalid="true" aria-disabled="false" aria-errormessage="customerLastName_error">
<br>
<label for="customerStreetAndNo">Street Address</label>
<input type="text" name="customerStreetAndNo" id="customerStreetAndNo" tabindex="0" data-qa="input-customerStreetAndNo" autocomplete="street-address" aria-required="true" aria-invalid="true" aria-disabled="false" aria-errormessage="customerStreetAndNo_error">
<br>
<label for="customerPostalCode">Postcode</label>
<input type="text" name="customerPostalCode" id="customerPostalCode" tabindex="0" data-qa="input-customerPostalCode" autocomplete="postal-code" aria-required="true" aria-invalid="true" aria-disabled="false" aria-errormessage="customerPostalCode_error">
<br>
<label for="customerCity">City</label>
<input type="text" name="customerCity" id="customerCity" tabindex="0" data-qa="input-customerCity" autocomplete="address-level2" aria-required="true" aria-invalid="true" aria-disabled="false" aria-errormessage="customerCity_error">
<br>
<label for="customerCountry">Country</label>
<input type="text" name="customerCountry" id="customerCountry" tabindex="0" data-qa="input-customerCountry" autocomplete="country-name" aria-required="true" aria-invalid="true" aria-disabled="false" aria-errormessage="customerCountry_error">
<br>
<input type="submit" value="Submit">
</form>
</body>
</html> I served this HTML on localhost and entered this details:
I did this with the current release version 131 using the WinForms.Example project with no changes to the code at all. zelpnir's workaround fixed it for me. I wonder if that preference list is all it takes or there are some other we should also disable to avoid crashes in other situations. |
Describe the bug
When running a .NET 4.8 WinForms application using the CefSharp ChromiumWebBrowser control and navigating to a html page containing inputs for Street, Town and Postcode, typing any value in all these fields then submitting the form, the hosting application crashes with a fault in libcef.dll
To Reproduce
I have created a sample repo at https://github.com/mattwildgoose/CefSharpIssue. This contains both a sample WinForms app and a web app with a simple html file used to reproduce the issue.
Steps to reproduce the behavior:
Expected behavior
The form should submit successfully and browser remain functional
Versions (please complete the following information):
Additional context
Does the problem reproduce with the cefclient or cefsimple sample application at the same version?
I tried to reproduce with the cefclient trying each of the following command lines but could not reproduce with any
.\cefclient.exe --multi-threaded-message-loop --no-sandbox --use-alloy-style
.\cefclient.exe --multi-threaded-message-loop --no-sandbox --use-alloy-style --lang=en-GB
.\cefclient.exe --multi-threaded-message-loop --no-sandbox --use-alloy-style --enable-chrome-runtime --lang=en-GB
With the cefclient after submitting the form it opens the dialog asking if you want to save the address against your profile, this isn't available when using CefSharp to my knowledge.
Does the problem reproduce with Google Chrome at the same version?
The problem does not reproduce in Google Chrome which opens the same dialog as cefclient asking about saving the address
Add any other context about the problem here.
The problem appears to have come in with the switch from Alloy to Chrome Bootstrap and reverting to Alloy resolves the problem. Also if you don't set the CefSettings.Locale and leave as default (en-US) then you don't get the issue either.
On the CefSharp issue related to the change to the Chrome Bootstrap it requests to log related issues here, hence why I'm raising here rather than in the CefSharp repo.
The exception you get is
Unhandled exception at 0x00007FFE050B86D4 (libcef.dll) in Browser.exe.43284.dmp: 0xC0000005: Access violation reading location 0x00000000000001F8.
Stack Trace:
StackTrace.txt
The text was updated successfully, but these errors were encountered: