Closed Bug 797288 Opened 12 years ago Closed 11 years ago

Pdf.js download behavior inconsistent

Categories

(Firefox :: PDF Viewer, defect, P3)

18 Branch
x86_64
Windows 7
defect

Tracking

()

VERIFIED FIXED
Firefox 21
Tracking Status
firefox19 + verified
firefox20 + verified
firefox21 --- verified

People

(Reporter: david.smitmanis, Assigned: bdahl)

References

Details

(Whiteboard: [pdfjs-c-ux] https://github.com/mozilla/pdf.js/pull/2635)

Attachments

(2 files)

It seems the behavior when clicking the download button differs depending on your profile settings. Default behavior with a clean profile is to download the pdf to the default folder without prompting, which in my opinion isn't desirable.

Other people seem to get promted (see Bug 793832 for instance), so my guess is that it could depend on your settings in Options - Applications.

My suggestion would be to make the download button always prompt no matter the settings, or to add the ability to specify the behavior yourself in some way. Right now it seems beyond direct user control.
Can you check the "General" tab under the Options window? The setting under "Downloads" might be set to automatically save files to a default folder. I changed a clean profile setting to "Always ask me where to save files," and the next PDF I saved prompted me for a location to save the file to.
Indeed, if you set to the "Always ask" you are asked where you want to save the file. The problem is that this settings goes for everywhere in Firefox. The default settings (from a completely new profile) is "Save to folder", yet you will get some sort of dialog before it downloads for any file without a custom behavior set in Applications. And you can't set a preferred behavior for pdf files, because you have already set it to preview in browser.
I think I understand what you are saying. The prompt always comes up regardless of the download setting in Options for any non-PDF file. This is occurring for me on Firefox 18, Ubuntu, 32-bit.

Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/18.0 Firefox/18.0
With the built in version of pdf.js it should always download automatically.  It would be nice if it opened the open with/save as dialog instead.
Priority: -- → P3
Whiteboard: [pdfjs-c-ux]
We have a relatively small fix for this which will come along with bug 835954, but from recent feedback this seems to be a pretty common issue.

Alex, 
Do you think this is worth/wanted for uplift?
Flags: needinfo?(akeybl)
(In reply to Brendan Dahl from comment #5)
> Alex, 
> Do you think this is worth/wanted for uplift?

That'd be great, since we expect to be relying on the fallback in a number of user critical instances. Please prepare an uplift for landing on mozilla-beta Tuesday, along with the other infobar changes. Thanks!
Assignee: nobody → bdahl
Flags: needinfo?(akeybl)
Keywords: qawanted
QA Contact: anthony.s.hughes
Summary: Download behavior inconsistent → Pdf.js download behavior inconsistent
Keywords: verifyme
Whiteboard: [pdfjs-c-ux] → [pdfjs-c-ux] https://github.com/mozilla/pdf.js/pull/2635
Depends on: 835954
Comment on attachment 709688 [details] [diff] [review]
Use attachment content disposition attachment and filename (beta)

[Approval Request Comment]
Bug caused by (feature/regressing bug #): --
User impact if declined: Download behavior inconsistent
Testing completed (on m-c, etc.): https://tbpl.mozilla.org/?tree=Try&rev=bcfacb40d978, tested on dev. version on pdf.js
Risk to taking this patch (and alternatives if risky): low, affects only fallback/download pdf.js functionality
String or UUID changes made by this patch: --
Attachment #709688 - Flags: approval-mozilla-beta?
Comment on attachment 709689 [details] [diff] [review]
Use attachment content disposition attachment and filename (aurora)

[Approval Request Comment]
Bug caused by (feature/regressing bug #): --
User impact if declined: Download behavior inconsistent
Testing completed (on m-c, etc.): https://tbpl.mozilla.org/?tree=Try&rev=b9730aeeedd3, tested on dev. version of pdf.js
Risk to taking this patch (and alternatives if risky): low, affects only fallback/download pdf.js functionality
String or UUID changes made by this patch: --
Attachment #709689 - Flags: approval-mozilla-aurora?
Attachment #709688 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #709689 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Keywords: checkin-needed
Whiteboard: [pdfjs-c-ux] https://github.com/mozilla/pdf.js/pull/2635 → [pdfjs-c-ux] https://github.com/mozilla/pdf.js/pull/2635, checkin-needed for patches for beta and aurora
https://hg.mozilla.org/releases/mozilla-aurora/rev/c0eea5c5526a
https://hg.mozilla.org/releases/mozilla-beta/rev/53c23a73d31c

This will be fixed on m-c when bug 835954 lands.
Keywords: checkin-needed
Whiteboard: [pdfjs-c-ux] https://github.com/mozilla/pdf.js/pull/2635, checkin-needed for patches for beta and aurora → [pdfjs-c-ux] https://github.com/mozilla/pdf.js/pull/2635
Target Milestone: --- → Firefox 21
https://hg.mozilla.org/mozilla-central/rev/af8e5720ccf2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Verified on Firefox 19 beta 5.

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130206083616
Thanks Manuela. Dropping qawanted but leaving verifyme to track for verification on other branches.
Keywords: qawanted
Verified the fix for Firefox 20.0 beta 1 (20130220104816).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

After clicking the download button, the user is prompted to Open/Save file.
Verified as fixed on Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 (20130416200523). I get the open/save prompt every time.
Verified as fixed on latest Nightly 25.0a1 (Build ID: 20130728030204)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130728 Firefox/25.0
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: