Closed m-kovac closed 3 weeks ago
The Chromium Embedded Framework (CEF)
project has it's own Issue Tracker, please report this issue there. CefSharp
is just one of many wrappers around the Chromium Embedded Framework (CEF)
If you do find an existing issue that matches this one or create a new one then post a link here for others.
Closing this as upstream
as changes/fixes need to be made in CEF
.
Is there an existing issue for this?
CefSharp Version
129.0.110
Operating System
Windows 11
Architecture
x64
.Net Version
.NET 4.8
Implementation
WinForms
Reproduction Steps
Clone CefSharp.WinForms example
Create custom
IDownloadHandler
and assign it tobrowser.DownloadHandler
Implement the
OnBeforeDownload
method:Buld and start the project
Go to https://codepen.io/chriddyp/pen/aVammp and download the example file
Expected behavior
The dialog should open in the "C:\Users\currentUser\Downloads\" folder with pre-filled
File name
text field.Actual behavior
The dialog is opened in the
C:\Users\user
folder with pre-filledFile name
text field. Only way to show the correct folder is to not specify the file name e.g.var downloadedFilePath = "C:\\Users\\currentUser\\Downloads";
which will leave theFile name
text field and type of file empty.Regression?
Same issue was spotted in
v127.3.50
andv128.4.90
Known Workarounds
No response
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
No response