Closed Bug 1778714 Opened 2 years ago Closed 2 years ago

Downloading from internal PDF viewer produces the wrong download link if link is copied from library.

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 103
Desktop
All
defect

Tracking

()

VERIFIED FIXED
105 Branch
Tracking Status
firefox-esr102 --- verified
firefox105 --- verified

People

(Reporter: mchiorean, Assigned: calixte)

Details

Attachments

(2 files)

Attached image Screenplay.gif

Found in
Firefox 103.0b6

Affected versions
Firefox 103.0b6
Firefox 104.0a1

Affected platforms
Windows 10
macOS10.13
Ubuntu 20.04

Steps to reproduce

  1. Open FF.
  2. Open pdf file. (I used "http://www.pdf995.com/samples/pdf.pdf ").
  3. Download pdf.
  4. Open download file (Library).
  5. Right click on the downloaded pdf 'Copy Download link'.
  6. Paste the copied link to a new tab.

Expected result
Copied file should be “http://www.pdf995.com/samples/pdf.pdf”.

Actual result
Copied file is "blob:resource://pdf.js/9f79bca1-df79-4060-b207-24dd3f6d5374".

Regression range
Will add as soon as possible.

Additional notes

  • The issue is related to bug 1766030.
  • Issue is fixed if downloaded panel is reached from the toolbar button. Only reproducible if downloaded panel is reached from the Library view.
Assignee: nobody → cdenizet
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1

:gijs, do you have any idea on how I can test that stuff ?

Flags: needinfo?(gijskruitbosch+bugs)
Has STR: --- → yes

(In reply to Calixte Denizet (:calixte) from comment #2)

:gijs, do you have any idea on how I can test that stuff ?

Unfortunately about:downloads is undertested. Try looking at https://searchfox.org/mozilla-central/source/browser/components/downloads/test/browser/browser_about_downloads.js and copying that test. In terms of the selection + copy-pasting, I'd suggest invoking cmd_copy via goDoCommand - https://searchfox.org/mozilla-central/search?q=cmd_copy&path=test&case=false&regexp=false has a few examples.

Flags: needinfo?(gijskruitbosch+bugs)
Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/724282da88eb
Fix the pdf download link in the All Downloads view r=Gijs
Flags: needinfo?(cdenizet)
Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/01b9d9c47f46
Fix the pdf download link in the All Downloads view r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Flags: qe-verify+

Verified as fixed on Win10/Mac 10.13/Ubuntu20.4 using Beta 105.0b4.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Comment on attachment 9284808 [details]
Bug 1778714 - Fix the pdf download link in the All Downloads view r=gijs

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Ergonomics fix for PDF downloads
  • User impact if declined: User will get a blob url when they will copy the url from the All downloads view.
  • Fix Landed on Version: 105
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small changes and it has an automated test.
Attachment #9284808 - Flags: approval-mozilla-esr102?

Comment on attachment 9284808 [details]
Bug 1778714 - Fix the pdf download link in the All Downloads view r=gijs

Approved for 102.3esr.

Attachment #9284808 - Flags: approval-mozilla-esr102? → approval-mozilla-esr102+

Verified issue as fixed on Win10, Ubuntu20.04, Mac10.13 using FF build 102.3.0esr( 20220912135840).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: