Downloading from internal PDF viewer produces the wrong download link if link is copied from library.
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
People
(Reporter: mchiorean, Assigned: calixte)
Details
Attachments
(2 files)
6.22 MB,
image/gif
|
Details | |
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr102+
|
Details | Review |
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
- Open FF.
- Open pdf file. (I used "http://www.pdf995.com/samples/pdf.pdf ").
- Download pdf.
- Open download file (Library).
- Right click on the downloaded pdf 'Copy Download link'.
- 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 | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
:gijs, do you have any idea on how I can test that stuff ?
Reporter | ||
Updated•2 years ago
|
Comment 3•2 years ago
|
||
(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®exp=false has a few examples.
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
Comment 5•2 years ago
|
||
Backed out for causing failures at browser_library_select_all.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/1504dd3d9308e26b7cb54bb2a77d3382cf1078d3
Failure log: https://treeherder.mozilla.org/logviewer?job_id=386667120&repo=autoland&lineNumber=5434
Assignee | ||
Comment 6•2 years ago
•
|
||
My bad, it's a typo:
https://hg.mozilla.org/integration/autoland/rev/1504dd3d9308e26b7cb54bb2a77d3382cf1078d3#l1.12
downlad
instead of download
...
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
Comment 8•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Reporter | ||
Comment 9•2 years ago
|
||
Verified as fixed on Win10/Mac 10.13/Ubuntu20.4 using Beta 105.0b4.
Assignee | ||
Comment 10•2 years ago
|
||
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.
Comment 11•2 years ago
|
||
Comment on attachment 9284808 [details]
Bug 1778714 - Fix the pdf download link in the All Downloads view r=gijs
Approved for 102.3esr.
Comment 12•2 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 13•2 years ago
|
||
Verified issue as fixed on Win10, Ubuntu20.04, Mac10.13 using FF build 102.3.0esr( 20220912135840).
Description
•