Trying to download XLS from a popup doesn't work

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.

Trying to download XLS from a popup doesn't work

Postby snapperdragon » Mon Dec 19, 2016 11:28 am

I noticed that when you try to download an XLS file from a popup, nothing happens.

Steps to reproduce:
  • Run the following test (https://bitbucket.org/chromiumembedded/ ... Frame.java)
  • Go toTests >> Show DevTools >> Console
  • Run the following script (this is a sample xls available online) - a popup gets created but nothing happens:
    Code: Select all
    window.open("http://coral.ie.lehigh.edu/~ted/files/eng5/misc/sample.xls",'name','height=200,width=150');


Note: With other formats, the popup seems to work. For example, run the following script (this is a sample pdf available online) - the pop gets created and renders the pdf successfully
window.open("http://www.cbu.edu.zm/downloads/pdf-sample.pdf",'name','height=200,width=150');

The details of the JCEF I am using is as follows:
JCEF Version = 3.2526.150
CEF Version = 3.2526.1366
Chromium Version = 47.0.2526.80

Any ideas how to fix this?
snapperdragon
Newbie
 
Posts: 3
Joined: Thu Aug 25, 2016 8:38 am

Re: Trying to download XLS from a popup doesn't work

Postby amaitland » Mon Dec 19, 2016 5:05 pm

Have you tested with `3.2883.1539`? The version your using is old and no longer supported.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Trying to download XLS from a popup doesn't work

Postby snapperdragon » Wed Mar 15, 2017 8:04 am

Tried the same steps with 3.2924.152 and still getting the same issue.

For reference, these are the JCEF details:
JCEF Version = 3.2924.152
CEF Version = 3.2924.1572
Chromium Version = 56.0.2924.76

Any pointers on how to fix this?
snapperdragon
Newbie
 
Posts: 3
Joined: Thu Aug 25, 2016 8:38 am

Re: Trying to download XLS from a popup doesn't work

Postby magreenblatt » Wed Mar 15, 2017 1:22 pm

How does it behave with the cefclient "Sample Application" available from http://opensource.spotify.com/cefbuilds/index.html ?
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: Trying to download XLS from a popup doesn't work

Postby snapperdragon » Fri Mar 17, 2017 6:47 am

I downloaded a cefclient "Sample Application" available from http://opensource.spotify.com/cefbuilds/index.html (for the exact version i.e. 3.2924.1572) and ran the same steps as above and it was able to download the XLS file successfully.

As mentioned in the JCEF bicketbucket issues page (https://bitbucket.org/chromiumembedded/ ... pup-doesnt), I put a breakpoint in the onBeforeDownload method in DownloadDialog.java method but it doesn't get triggered. Probably because the download is being attempted inside a popup?

Anyone else able to reproduce the same issue and if not, know what I am doing wrong?
snapperdragon
Newbie
 
Posts: 3
Joined: Thu Aug 25, 2016 8:38 am


Return to Support Forum

Who is online

Users browsing this forum: clown, richardmgoodin and 26 guests