File saved via double-click in the attachment area doesn't show in the list of saved files (Ctrl+J)
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(thunderbird_esr102+ affected)
People
(Reporter: rachel, Assigned: aceman, NeedInfo)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 2 obsolete files)
2.38 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
When saving a file via double-click from the attachment area, the file doesn't appear in the list of saved files any more. Visible in TB 95 beta.
Reporter | ||
Comment 1•1 year ago
|
||
Likely a regression of bug 1737711.
Reporter | ||
Comment 2•1 year ago
|
||
Maybe something like this or this is missing here? Looks like the transfer stuff creates the download (entry) here (line 413).
Reporter | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
Reporter | ||
Comment 5•10 months ago
|
||
Geoff, maybe TB should eventually take this patch before 102 since it's a regression from the "open attachment reshuffle". Likely needs rebasing to trunk. (Strange that no user complained since we got a complaint very early on.)
Reporter | ||
Comment 6•10 months ago
|
||
Comment 7•10 months ago
|
||
We want to create an item in the downloads history aka "Saved Files" every time
when an attachment get saved, so that users won't have to dig for that file
again.
Updated•10 months ago
|
Comment 8•10 months ago
|
||
(In reply to Rachel Martin from comment #5)
Geoff, maybe TB should eventually take this patch before 102 since it's a regression from the "open attachment reshuffle". Likely needs rebasing to trunk. (Strange that no user complained since we got a complaint very early on.)
Thanks Rachel for following up on this and offering your patch! This is a useful fix for an everyday basic workflow.
Geoff is on holiday for the next two weeks. I've applied this in my new (Artifact) Build Environment, and it does fix the problem without any side effects afasics. Patch uploaded for review. Awesome!
Reporter | ||
Comment 9•9 months ago
|
||
It would be preferable to keep passing in the path, instead of adding more reliance on nsIFile
nsITransfer,init()
requires a nsIURI
parameter, so it doesn't make sense to pass the nsIFile.path
instead of nsIFile
just to create another nsIFile
inside the function to create the URI.
Reporter | ||
Updated•7 months ago
|
![]() |
Assignee | |
Comment 10•4 months ago
•
|
||
I have simplified the patch to keep using the file path instead of nsIFile. It seems to work for me on Linux. Please test on Windows, whether the constructed URI is correct and the downloads list opens the correct folder where the file was stored.
Comment 11•4 months ago
|
||
Comment on attachment 9297023 [details] [diff] [review] 1744709-save-double-click-download.patch Review of attachment 9297023 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, works on Windows. ::: mail/base/content/msgHdrView.js @@ +1554,5 @@ > async function saveToFile(path) { > let buffer = await new Promise(function(resolve, reject) { > NetUtil.asyncFetch( > { > uri: Services.io.newURI(url), Please use `sourceURI` here like in our original patch.
![]() |
Assignee | |
Comment 12•4 months ago
|
||
Thanks, updated the patch.
Updated•4 months ago
|
Updated•4 months ago
|
Comment 13•4 months ago
|
||
Comment on attachment 9297706 [details] [diff] [review]
1744709-save-double-click-download.patch v2
Looks good to me, r=mkmelin
Comment 14•4 months ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c8e4b4cb97f8
Create a download when saving to file via double-click.
Updated•4 months ago
|
Updated•4 months ago
|
Comment 15•4 months ago
|
||
This breaks the test mail/test/browser/attachment/browser_openAttachment.js on Linux/Mac systems. Looks like the file permissions aren't what was expected.
Comment 16•4 months ago
|
||
Backout: https://hg.mozilla.org/comm-central/rev/600f0bbcf715659acd53bcd39616db5118b63b62
I suspect https://searchfox.org/comm-central/rev/0f01f315a67ccf35334446b28697032348e3b117/mail/base/content/msgHdrView.js#1643 isn't operating on the "right" file anymore.
Description
•