DownloadManager when link is clicked from Flash

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

DownloadManager when link is clicked from Flash

Postby michale » Thu Apr 30, 2015 8:31 am

I've posted this question in CefSharp group https://groups.google.com/forum/#!topic/cefsharp/5P6qeudv3zw
They suggested me to open this issue here

When implementing download support with
browser.DownloadHandler = new DownloadHandler();

It works GREAT with downloading stuff directly from html page, but when the link is inside Flash it opens the option to save but also opens a blank popup window

You can see it when running CefSharp.MinimalExample
https://github.com/cefsharp/CefSharp.MinimalExample/

Goto http://demo.northkingdom.com/gotmilk/planetinneed/
skip into
click on 'Download xxx...' button


Please Advise
Thanks!
Michal
michale
Newbie
 
Posts: 5
Joined: Wed May 14, 2014 7:38 am

Re: DownloadManager when link is clicked from Flash

Postby michale » Thu May 07, 2015 3:13 am

Can someone relate to this issue?
michale
Newbie
 
Posts: 5
Joined: Wed May 14, 2014 7:38 am

Re: DownloadManager when link is clicked from Flash

Postby magreenblatt » Thu May 07, 2015 8:31 am

What CEF version? NPAPI or PPAPI Flash plugin?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: DownloadManager when link is clicked from Flash

Postby michale » Fri May 15, 2015 5:38 am

Hi,

Thanks for your reply!!!

Here are the details:
chrome://version
CEF 3.2062.1898
Chromium 37.0.2062.94

right click on Flash when running in CEF
Flash You have version 17,0,0,169 installed

As I mentioned I used the CefSharp.MinimalExample with this additional code

Code: Select all
...
            browser.DownloadHandler = new DownloadHandler();
...

        public class DownloadHandler : IDownloadHandler
        {
            public bool OnBeforeDownload(DownloadItem downloadItem, out string downloadPath, out bool showDialog)
            {
                downloadPath = downloadItem.SuggestedFileName;
                showDialog = true;

                return true;
            }

            public bool OnDownloadUpdated(DownloadItem downloadItem)
            {
                return false;
            }
        }
michale
Newbie
 
Posts: 5
Joined: Wed May 14, 2014 7:38 am

Re: DownloadManager when link is clicked from Flash

Postby magreenblatt » Fri May 15, 2015 7:28 am

michale wrote:CEF 3.2062.1898

You're probably using the NPAPI version of Flash which manages downloads itself. The PPAPI version of Flash, which can be used with 2357 branch and newer, should trigger the download handler.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: DownloadManager when link is clicked from Flash

Postby michale » Wed May 20, 2015 12:20 am

It does trigger the DownloadManager
The only thing that need to be fixed is the fact that a blank popup window is left open after clicking the download link from Flash
michale
Newbie
 
Posts: 5
Joined: Wed May 14, 2014 7:38 am

Re: DownloadManager when link is clicked from Flash

Postby amaitland » Wed May 20, 2015 3:59 am

Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 89 guests