

If you think this should be a separate feature request, happy to open a new We are building the open-source lockdown software Safe Exam Browser which contains a configurable browser component currently built with CefSharp / CEF. Hopefully this use case clearly articulates why we would need WebView2 to additionally implement the following CefSharp events or equivilent:ĬhromiumWebBrowser.MenuHandler (OnBeforeContextMenu, OnContextMenuCommand and RunContextMenu) ChromiumWebBrowser.KeyboardHandler (OnPreKeyEvent and OnKeyEvent) ChromiumWebBrowser.DialogHandler (OnFileDialog) ChromiumWebBrowser.DragHandler (OnDragEnter) We also, cannot prevent File Open and File Save common dialogs that appear when a website requests an upload or provides a download. Currently WebView2 does not respect the AllowDrop WinForms property and therefore we cannot prevent drag/drop of a hyperlink lnk file or a drag/drop upload form. This tool is allow-listed in our host based firewall policy and we use hooks into the browser to prevent the user from using the tool to upload files, download files, copy/paste into and out of the browser. We maintain a tool that monitors for captive portals on public Wi-Fi connections and facilitates a user to authenticate to these captive portals before forcing a VPN connection to be established. Hi I have the following use case that would require the exposing of Upload/Download APIs (and some others currently available in CefSharp which appears to be where most developers are migrating from to WebView2). Thank you very much for considering a feature to support this type of capability. Then my code can store it in the database vs saving it to disk. This may be where the per document option might have to come into play, but let me decide what to do with the data, ideally let me get it in a stream or a byte array if not. What is particularly important is that this happens in the security context of the browser that was established when we logged in because if not, the user will be denied access. If that is not an option then I would like to be able to at least have the user click on the document and be able to provide a way for them to save it directly to the database. Ideally what we want is to be able to do is iterate over all the links to pdfs on the page and within the hosted browser control download them all into our database vs having to download them one by one to disk and then re-upload them into our database. In our market we must conduct business a lot via website vs webapis and one thing we interact with constantly are files, usually pdfs, that are linked to via a webpage that must be downloaded and then uploaded into our database. This sounds like something I am also extremely interested in.
