mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
Revert "Auto-close blank popups when download is complete"
This reverts commit 7ea66af1cc.
Will look at exposing the IBrowser interface which will give users the ability to close the popup themselves
This commit is contained in:
@@ -36,11 +36,6 @@ namespace CefSharp
|
||||
void DownloadAdapter::OnDownloadUpdated(CefRefPtr<CefBrowser> browser, CefRefPtr<CefDownloadItem> download_item,
|
||||
CefRefPtr<CefDownloadItemCallback> callback)
|
||||
{
|
||||
if (!download_item->IsInProgress() && browser->IsPopup() && !browser->HasDocument())
|
||||
{
|
||||
browser->GetHost()->CloseBrowser(false);
|
||||
}
|
||||
|
||||
if (_handler->OnDownloadUpdated(TypeConversion::FromNative(download_item)))
|
||||
{
|
||||
callback->Cancel();
|
||||
|
||||
Reference in New Issue
Block a user