From b642e15bc6f65af923b08008c8dbce7db5b56fe2 Mon Sep 17 00:00:00 2001 From: amaitland Date: Thu, 21 May 2015 10:48:17 +1000 Subject: [PATCH] Revert "Auto-close blank popups when download is complete" This reverts commit 7ea66af1cca17e34c32220e78316b99cddb5dc47. Will look at exposing the IBrowser interface which will give users the ability to close the popup themselves --- CefSharp.Core/Internals/DownloadAdapter.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CefSharp.Core/Internals/DownloadAdapter.cpp b/CefSharp.Core/Internals/DownloadAdapter.cpp index d1697fed1..2f63b4794 100644 --- a/CefSharp.Core/Internals/DownloadAdapter.cpp +++ b/CefSharp.Core/Internals/DownloadAdapter.cpp @@ -36,11 +36,6 @@ namespace CefSharp void DownloadAdapter::OnDownloadUpdated(CefRefPtr browser, CefRefPtr download_item, CefRefPtr callback) { - if (!download_item->IsInProgress() && browser->IsPopup() && !browser->HasDocument()) - { - browser->GetHost()->CloseBrowser(false); - } - if (_handler->OnDownloadUpdated(TypeConversion::FromNative(download_item))) { callback->Cancel();