Skip to content

Trying to download XLS from a popup doesn't work #264

Description

@magreenblatt

Original report by Kaushik Chaubal (Bitbucket: kaushikchaubal, GitHub: kaushikchaubal).


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

Steps to reproduce:

#!javascript
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

#!javascript
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.2924.152

CEF Version = 3.2924.1572

Chromium Version = 56.0.2924.76

Any ideas how to fix this?

Activity

  1. magreenblatt commented on Mar 15, 2017

    @magreenblatt
    CollaboratorAuthor

    Original comment by Kaushik Chaubal (Bitbucket: kaushikchaubal, GitHub: kaushikchaubal).


    Issue #250 was marked as a duplicate of this issue.

  2. magreenblatt commented on Mar 16, 2017

    @magreenblatt
    CollaboratorAuthor

    It should trigger CefDownloadHandler via detailed/dialog/DownloadDialog.java.

  3. magreenblatt commented on Mar 17, 2017

    @magreenblatt
    CollaboratorAuthor

    Original comment by Kaushik Chaubal (Bitbucket: kaushikchaubal, GitHub: kaushikchaubal).


    That's what I was expecting too and so, 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?

    Also, as mentioned on the other thread (http://magpcss.org/ceforum/viewtopic.php?t=14770), 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.

    If I had to guess, I think there is something wrong going on while trying to download in a popup in JCEF. Happy to dig deeper and create a PR with a fix if I get some suggestions / advice where to look.

  4. magreenblatt commented on Mar 17, 2017

    @magreenblatt
    CollaboratorAuthor

    Original comment by Johann Scheiterbauer (Bitbucket: Phylanx, GitHub: Phylanx).


    Hi!
    We have the same issue too (but using 3.2704).
    Might be that CEF internally a new CefBrowser/CefClient are created?

    I think I saw a comment somewhere that the browser/client in onBeforePopup should be new ones handling the new window?

  5. magreenblatt commented on Jul 31, 2020

    @magreenblatt
    CollaboratorAuthor

    Closing old issues as WontFix. If the problem still reproduces please create new a new issue referencing the current JCEF version.

  6. magreenblatt commented on Jul 31, 2020

    @magreenblatt
    CollaboratorAuthor
    • changed state from "new" to "wontfix"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions