Skip to content
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

PDF inside of a popup window does not load (works fine in Chrome) #3119

Closed
juliangent opened this issue Jan 26, 2019 · 11 comments · Fixed by brave/brave-core#2342
Closed

PDF inside of a popup window does not load (works fine in Chrome) #3119

juliangent opened this issue Jan 26, 2019 · 11 comments · Fixed by brave/brave-core#2342

Comments

@juliangent
Copy link

juliangent commented Jan 26, 2019

Test plan

See brave/brave-core#2342

Description

Cannot open pdf file in new window. No problem using chrome.

PDF document is supposed to open when clicking link in a separate window.

message says 'this plugin is not supported'

expected result
pdf file should open in new window. No problems with chrome browser.

Reproduces how often:

every time

Brave version (brave://version info)

Version 0.58.21 Chromium: 71.0.3578.98 (Official Build) (64-bit)

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds?

Website problems only:

  • Does the issue resolve itself when disabling Brave Shields? No
  • Is the issue reproducible on the latest version of Chrome? no
    1548528867391

Additional Information

no
@srirambv
Copy link
Contributor

Could you add the details of the site?

@srirambv srirambv added extension/PDFJS needs-more-info The report requires more detail before we can decide what to do with this issue. labels Jan 28, 2019
@srirambv srirambv added this to the 1.x Backlog milestone Jan 28, 2019
@rebron
Copy link
Collaborator

rebron commented Feb 1, 2019

possibly flash related, still need steps to reproduce.

@juliangent
Copy link
Author

juliangent commented Feb 2, 2019 via email

@rebron rebron removed this from the 1.x Backlog milestone Feb 7, 2019
@andyrpearson
Copy link

I get a similar problem within Xero (sorry you'll need an account to replicate) where they have a 'print PDF' button on invoices that triggers some javascript that opens an in-browser popup that shows while the PDF is being generated. In chrome this downloads; in brave it replaces the current window with the Brave PDF plugin but shows an error as per screenshot. I can't find any way around this to get the PDF other than reverting to Chrome. Error shown is:

Unexpected server response (500) while retrieving PDF "https://go.xero.com/AccountsReceivable/InvoiceDownloader.aspx?PrintJobId=3495306".
Screenshot:

screenshot 2019-02-14 at 12 39 04

@andyrpearson
Copy link

I got round my issue by changing the settings to default to downloading PDFs rather than opening them (which I guess just bypasses the PDF extension that was causing the problem)

@juliangent
Copy link
Author

juliangent commented Feb 14, 2019 via email

@rebron rebron added the priority/P4 Planned work. We expect to get to it "soon". label Feb 15, 2019
@bsclifton
Copy link
Member

I believe I have repro steps for this!

Visit https://pdfobject.com/examples/detection.html

Expected

Message This browser supports inline PDFs should be shown (green color)

Actual

Message This browser does not support inline PDFs shows (red color)

@juliangent
Copy link
Author

juliangent commented Apr 26, 2019 via email

@bsclifton
Copy link
Member

@juliangent OK thanks for the update - maybe we can share an update when we have a potential fix

@mckenzieja
Copy link

mckenzieja commented May 1, 2019

+1 Here.

We tried to implement jsPDF (An HTML5 JavaScript PDF generation library) and noticed that PDFs opened in a new window automatically triggered the download dialog and spent some considerable time scratching our heads (we realized it was Brave related).

Fortunately this is very VERY easy to test using jsPDF.
npm install jspdf

run this simple script in the browser

var doc = new JsPDF();

doc.setFontSize(40);
doc.text("We Love Brave!", 35, 25);
doc.output('dataurlnewwindow'); //Outputs the rendered PDF in a new window

Chrome: Renders PDF within the browser PDF viewer in the new window (works)
Brave: Opens the new window (blank) "Save As" download dialog prompt opens. (Cancelling the download closes the window)

@bsclifton bsclifton added this to the 0.67.x - Nightly milestone May 24, 2019
@bsclifton bsclifton added QA/Test-Plan-Specified QA/Yes release-notes/include and removed needs-more-info The report requires more detail before we can decide what to do with this issue. labels May 31, 2019
@bsclifton bsclifton changed the title Cannot open pdf file in new window, No problems with Chrome. PDF inside of a popup window does not load (works fine in Chrome) May 31, 2019
@btlechowski
Copy link

btlechowski commented Jul 30, 2019

Verification passed on

Brave 0.68.113 Chromium: 76.0.3809.62 (Official Build) beta (64-bit)
Revision 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS Windows 7 Service Pack 1 (Build 7601.24494)

Verified test plan from brave/brave-core#2342
Verified test plan provided in #3119 (comment)

Verification passed on

Brave 0.68.113 Chromium: 76.0.3809.62 (Official Build) beta (64-bit)
Revision 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS Linux
  • Verified PDF is supported message shown on the test link
    image

Verified passed with

Brave 0.68.114 Chromium: 76.0.3809.87 (Official Build) beta (64-bit)
Revision 111fe1e15d5ced26080a7dc239bcfe70f6c49aad-refs/branch-heads/3809@{#967}
OS Mac OS X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants