-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-close blank popups when download is complete #1033
Conversation
@@ -38,6 +38,12 @@ namespace CefSharp | |||
void DownloadAdapter::OnDownloadUpdated(CefRefPtr<CefBrowser> browser, CefRefPtr<CefDownloadItem> download_item, | |||
CefRefPtr<CefDownloadItemCallback> callback) | |||
{ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra blank line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - I added the line to force AppVeyor to rebuild, but forgot to remove it.
If we merge this into |
Ah, you're talking about the working being done in #1030? So the
And then users can do the |
Yep, that's the one. |
@amaitland I agree, 2272 gives the user more control over such things. Do you think it'd be worth keeping this behavior as default, though, if the user doesn't implement the appropriate handlers? |
For downloads you have to implement |
I have toyed with the idea of implementing a generic set of handlers that provide some sensible defaults, make all the methods |
Auto-close blank popups when download is complete
I checked the issue with the version 89.0.17 and the blank popup is not closed at the end of the Download of file. Then the issue is still reproducible |
To give users full control this change was reverted as there was no way to disable the default behaviour. The relevant APIs for closing the popup were added years ago so you can easily close the popup in your IDownloadHandler implementation. |
Fix for issue #1031
Automatically close blank popups that appear when downloads are started in a separate window, once the download is done (complete, failed or cancelled).
Test the fix here:
https://jsfiddle.net/yLk7d3z8/