Closed Bug 1395252 Opened 7 years ago Closed 7 years ago

Thunderbird 57 - Unable to add attachments to email

Categories

(Thunderbird :: Message Compose Window, defect)

57 Branch
x86_64
All
defect
Not set
major

Tracking

(thunderbird56 unaffected, thunderbird57 affected)

VERIFIED FIXED
Thunderbird 57.0
Tracking Status
thunderbird56 --- unaffected
thunderbird57 --- affected

People

(Reporter: bc, Assigned: jorgk-bmo)

References

Details

(Keywords: regression)

Attachments

(1 file)

I recently realized that Daily was no longer adding attachments. Steps to reproduce are to start a new email, then attempt to add an attachment. Nothing is added but I found the following in the console: NS_ERROR_MALFORMED_URI: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIFilePicker.file] MsgComposeCommands.js:4080 AttachFile/< chrome://messenger/content/messengercompose/MsgComposeCommands.js:4080:63 I'm not sure how recent this regression is. It is more than just a few days, but I haven't narrowed down the regression range. I'll try to do that when I have them time unless someone wants to do it before then.
Thanks for reporting. In bug 1341211 we sadly had to turn the whole system upside down due to some changes in Mozilla Central. I can reproduce the problem that no attachment is added, but not the error in the console. In a debug window I see: [428] WARNING: RememberLastUsedDirectory failed to init file path.: file c:/mozilla-source/comm-central/mozilla/widget/windows/nsFilePicker.cpp, line 789 Anyway, we'll get this fixed pronto. In the meantime, please drag files onto the addressing widget to attach them. Aceman, looks like this slipped through the review cracks.
I've checked, we use nsIFilePicker.modeOpenMultiple three times in C-C and this one is wrong.
Assignee: nobody → jorgk
Status: NEW → ASSIGNED
Attachment #8902912 - Flags: review?(acelists)
Comment on attachment 8902912 [details] [diff] [review] 1395252-filepicker.patch Review of attachment 8902912 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, this seems to help. ::: mail/components/compose/content/MsgComposeCommands.js @@ +4081,2 @@ > return; > } I notice this block doesn't need the {}. @@ +4083,5 @@ > let file; > let attachments = []; > > for (file of fixIterator(fp.files, Components.interfaces.nsIFile)) > attachments.push(FileToAttachment(file)); While a for() block always needs {} in our style.
Attachment #8902912 - Flags: review?(acelists) → review+
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/a8c9aa8f996c Bug 1341211 follow-up: Use nsIFilePicker.files when using nsIFilePicker.modeOpenMultiple. r=aceman DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
(In reply to :aceman from comment #4) > While a for() block always needs {} in our style. There are many for() blocks in that file and I'm not on a clean-up tour here. I took away the braces since I touched that line anyway. Bob, this will be fixed in tomorrow's Daily.
Target Milestone: --- → Thunderbird 57.0
Works like a charm! Back on Daily now. Thanks!
Status: RESOLVED → VERIFIED
Thanks for confirmation.
(In reply to Bob Clary [:bc:] from comment #8) > Works like a charm! Back on Daily now. Thanks! Thanks for riding the sometimes bumpy Daily channel. There was no Daily on 31st August, I cancelled it due to other problems. Today's Daily is fine as far as I can tell.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: