New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 681041 link

Starred by 11 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Allow download of PDFs from the Disabled Placeholder

Project Member Reported by tommycli@chromium.org, Jan 13 2017

Issue description

1. Turn on "Open PDF Files in the default PDF viewer application" under chrome://settings/content

2. Look at the no-fallback embed test case (2nd testcase) from here:
https://pdfobject.com/static.html

3. Notice that you get a gray disabled placeholder with no way to download the PDF.

4. We should be able to download that PDF -- ideally not automatically, but instead via a click anywhere within the placeholder.
 
Screenshot from 2017-01-11 13:56:55.png
37.5 KB View Download
Cc: thestig@chromium.org rbpotter@chromium.org
I just checked what the PDFObject js lib (https://pdfobject.com) does to know if PDF is supported since it then uses the <embed> tag to show the PDF and they check if navigator.mimeTypes["application/pdf"] is defined and if so assumes there is a handling plugin. This works well with the way we disable PDF right now. 

So maybe our <embed> placeholder can contain similar logic and provide the same experience offering the download of the src tag of the embed link?
Labels: Enterprise-Triaged
Components: -Internals>Plugins Internals>Plugins>PDF
I like the idea, who would be a good owner for this?
Tommy, I think you implemented the change for Flash and you might know how to do the same magic for pdf?
Yeah I would probably be well qualified to do this. What's the priority of this? Looks like it's marked P3?
Labels: -Pri-3 M-59 Pri-2
Judging by the number of stars, P2/M59 seems about right.
laforge: This is a separate bug, but we should handle the IFRAME Case (on the same page) better also.

This problem is especially visible on Android, where it triggers multiple drive-by downloads. We should also show a "placeholder" iframe that the user can click to open the PDF in Drive PDF Viewer (instead of the multiple drive by download).

Thoughts?

Comment 9 by laforge@google.com, Feb 14 2017

Owner: tommycli@chromium.org
Status: Assigned (was: Available)
I agree that we should fix both cases.  Timing wise, what do you think about 58 versus 59?
 Issue 737787  has been merged into this issue.

Sign in to add a comment