Comments (5)
Issue exists since v102.0.90, the last version this works correctly is 101.0.180
Likely the result of this upstream change. CEF switched to using Chromium
dialogs.
from cefsharp.
I see. I wonder, how come I cant just work around this and do browser.Focus() on the Form.Activated event (which is correctly triggered when file browser is closed)? Why does the Focus() return false? Or even when it does returns true, it still does not focus on the browser control. What would be the proper way to focus on the browser manually?
from cefsharp.
You'd have to debug to find that out.
- https://github.com/cefsharp/CefSharp/blob/cefsharp/120/CefSharp.WinForms/ChromiumWebBrowser.cs#L901
- https://github.com/cefsharp/CefSharp/blob/cefsharp/120/CefSharp.WinForms/Internals/DefaultFocusHandler.cs
- https://github.com/cefsharp/CefSharp/blob/cefsharp/120/CefSharp.WinForms/Internals/ParentFormMessageInterceptor.cs
browser.GetBrowserHost().SetFocus(true);
from cefsharp.
Issue exists since v102.0.90, the last version this works correctly is 101.0.180
Likely the result of this upstream change. CEF switched to using
Chromium
dialogs.
Seems like there are multiple issues regarding that change. We have a DownloadHandler implemented, where we are specifying the download path manually and it is being ignored - the last path is always used for the dialog.
var fileName = downloadItem.SuggestedFileName;
var pathToDownload = Path.Combine(path, fileName);
callback.Continue(pathToDownload, showDialog: true); // no matter what the value of pathToDownload is, the dialog always points to last used download path
from cefsharp.
You can show your own custom dialog for downloading files and you should be able to do the same for the file picker as well.
https://cefsharp.github.io/api/118.6.x/html/M_CefSharp_Handler_DialogHandler_OnFileDialog.htm
from cefsharp.
Related Issues (20)
- Getting weird error in a set of users machines: Error Code: Aborted - Error: ERR_ABORTED
- WPF application crashes when closing a PDF containing XFA form HOT 5
- Winforms Application crashes when WebView2 and CefSharp are used at the same time with WebView2 v121 HOT 1
- Migrate to chromiumembeddedframework.runtime Nuget packages HOT 1
- WebGL doesn't work with SelfHost BrowserSubProcess in CefSharp 121 HOT 3
- Release Notification - 121.3.x HOT 1
- cefsharp.winforms is missing NuGet package README file
- NuGet - Add README file HOT 1
- Higher RAM usage in NETCore HOT 1
- cefsharp.common.netcore is missing NuGet package README file HOT 1
- Feature Request - Improve documentation to understand how to enable dark mode for ChromiumWebBrowser HOT 1
- Second run of *.exe ends with crash HOT 2
- EvaluateScriptAsync for SelfContained application
- RAM Leak HOT 1
- Frame identifiers changed from int64 to string
- CefSharp.PostMessage
- Get Web page cookies
- Page white screen
- Release Notification - 122.1.x
- Visual Content fails to load after upgrading from CEF Version 119.4.30 to CEF Version 120.1.80
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cefsharp.