Encrypted Reply Drafts loose "Re:" prefix
Categories
(MailNews Core :: Security: OpenPGP, defect, P2)
Tracking
(thunderbird_esr78+ fixed, thunderbird83 fixed)
People
(Reporter: patrick, Assigned: lasana)
Details
Attachments
(1 file, 4 obsolete files)
|
9.24 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
Reply to an encrypted message. Subject has Re: prefix. Save draft. Close message.
Go to drafts folder, edit draft. Result: Re: prefix is lost.
Note: Maybe the encrypted message already needs to be a reply.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
This seems to be a regression from bug 1633251. The p≡p team have fixed it in the p≡p add-on adding this line of code to the spot where the subject is prepared: if (msgHdr.flags & Ci.nsMsgMessageFlags.HasRe) hdrSubject = "Re: " + hdrSubject;
The equivalent spot in the Thunderbird code base would most likely at a call site of fixMessageSubject
https://searchfox.org/comm-central/rev/1bcbe36ec43f68f5fa52028adf43cd11e0389cd0/mail/extensions/openpgp/content/ui/enigmailMsgComposeOverlay.js#3159
at a location where the message header of the draft is available.
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 2•5 years ago
|
||
Changes setOriginalSubject to detect when gMsgCompose.type is a draft with the HasRe flag.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
The test I wrote errors on windows, not quite sure why.
| Assignee | ||
Comment 4•5 years ago
•
|
||
Comment 5•5 years ago
|
||
| Assignee | ||
Comment 6•5 years ago
|
||
The failure on OSX seems to be related to librnp not initializing properly. Not sure why but that's probably beyond the scope of this patch.
| Assignee | ||
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
It's probably best do do a try run without artifact to see there's no real problem for the test
Updated•5 years ago
|
| Assignee | ||
Comment 10•5 years ago
|
||
Renamed the file etc.
| Assignee | ||
Comment 11•5 years ago
|
||
A try run without --artifact did not raise the failures mentioned before.
Comment 12•5 years ago
|
||
| Assignee | ||
Comment 13•5 years ago
|
||
Variable renamed.
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/d55a97e68cc7
Keep "Re:" prefix when editing a draft reply to encrypted message. r=mkmelin
Comment 15•5 years ago
|
||
Comment on attachment 9183772 [details] [diff] [review]
1661510v4.patch
[Approval Request Comment]
User impact if declined: drafts lose Re: if they had one
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): not risky, has test
Comment 16•5 years ago
|
||
Comment on attachment 9183772 [details] [diff] [review]
1661510v4.patch
[Triage Comment]
Approved for beta
Comment 17•5 years ago
|
||
| bugherder uplift | ||
Thunderbird 83.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/1271c48c0e88
Comment 18•5 years ago
|
||
Comment on attachment 9183772 [details] [diff] [review]
1661510v4.patch
[Triage Comment]
Approved for esr78
Comment 19•5 years ago
|
||
| bugherder uplift | ||
Thunderbird 78.4.1:
https://hg.mozilla.org/releases/comm-esr78/rev/139811c07cb7
Description
•