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:
amaitland
2015-05-21 10:48:17 +10:00
parent 3b7b006f08
commit b642e15bc6
@@ -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();