"Edit draft" / "Edit as new message" doesn't populate address fields any more (existing profiles with encryption set up) when OpenPGP is configured for the identity
Categories
(Thunderbird :: Message Compose Window, defect, P2)
Tracking
(thunderbird_esr102 fixed, thunderbird102? wontfix, thunderbird103 fixed)
People
(Reporter: rachel, Assigned: KaiE)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
(deleted),
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr102+
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
Seen in TB 102 beta 7:
"edit as new message" on any message in the Sent folder.
Actual results:
Addressing fields not populated.
Expected results:
Addressing fields should be populated.
Should there be a test for this?
Reporter | ||
Comment 1•2 years ago
|
||
Alice, can you please check where this went broken? "Edit as new message" has the Ctrl+E shortcut in the message list.
Reporter | ||
Comment 2•2 years ago
|
||
Edit draft loses the addressing details as well. This is a recent regression, still working in beta 5 (didn't try beta 6).
Comment 3•2 years ago
|
||
Works for me in TB-beta102.0b7 as well as Daily103.0a1(20220619005013) Windows10.
Reporter | ||
Comment 4•2 years ago
|
||
Thanks for testing. It works on a new profile, but we see the failure on multiple existing profiles. Mozregression points to
Bug 1771122 - Remind user if encryption is possible but not enabled. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D147275
https://hg.mozilla.org/comm-central/rev/1a62e2afc99432552fd022db030584a988a4411b
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=c17365dc7e4e34f901c18b54c115e3f788051db3&tochange=1a62e2afc99432552fd022db030584a988a4411b
This also got uplifted to 102.0beta6.
Reporter | ||
Comment 5•2 years ago
|
||
Regression confirmed via backout.
Reporter | ||
Updated•2 years ago
|
Comment 6•2 years ago
|
||
I don't doubt that this happens, but I cannot reproduce and I use edit as new frequently.
Did you ever rename the account or server for this account?
Comment 7•2 years ago
|
||
Probably related to whether you're set up for OpenPGP or S/MIME, or not.
Reporter | ||
Comment 8•2 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #6)
Did you ever rename the account or server for this account?
Looks like you were asking whether we were affected by bug 1773511. Yes, we were, but we don't recall renaming anything in years. BTW, we have both PGP and S/MIME configured (not sure about the validity of the S/MIME certificate though).
Comment 9•2 years ago
|
||
Confirming based on Rachel's analysis/confirmation in comment 4 and comment 5.
Not seen on new profile (per comment 4), i.e. requires existing profiles, plus encryption.
For affected users, if it happens as described, this will be a serious regression as saved drafts will lose all recipients every time you edit them again.
Rachel, does this bug happen for Reply/Reply-to-all
too?
- if yes, that makes this bug worse as it also breaks those scenarios
- if not, imo there may be something wrong with the implementation logics of Bug 1771122: For replies (as opposed to edit draft/edit as new), is there a reason to not
remind user if encryption is possible but not enabled
?
Similarly, does this bug happen for Forward
(and then manually adding recipients, which imo should recheck if we need to show the notification)? [Edited]
Reporter | ||
Comment 10•2 years ago
|
||
Reply works. Not sure what you mean by Forward. Forward doesn't add recipients.
Comment 11•2 years ago
|
||
(In reply to Rachel Martin from comment #10)
Reply works. Not sure what you mean by Forward. Forward doesn't add recipients.
Thanks for checking! I was thinking of Forward
and then manually adding recipients, assuming that should recheck recipients and show notification to remind user if encryption is possible but not enabled
if applicable.
Reporter | ||
Comment 12•2 years ago
|
||
Beta 7 works when we remove PGP for the identity, that is select "Do not use OpenPGP for this identity". Have you set up PGP and does "edit draft" / "edit as new message" work?
Assignee | ||
Comment 13•2 years ago
|
||
I can reproduce. It doesn't happen if I temporarily skip all actions oif checkRecipientKeys();
I added a console.trace() there, and I see it's called three times. Once very early during load, then again while loading flags from the draft, and then again after composer loading is ready.
I think we could skip that function while composer isn't fully ready, which fixes the bug for me.
Assignee | ||
Comment 14•2 years ago
|
||
Assignee | ||
Comment 15•2 years ago
|
||
Rachel, does the patch fix the bug for you?
Reporter | ||
Comment 16•2 years ago
|
||
Yes (applied to MsgComposeCommands.js on an unpacked omni.ja). We didn't test that the notification comes up.
Comment 17•2 years ago
|
||
@KaiE: From a cursory look at https://phabricator.services.mozilla.com/D147275 (from regressing Bug 1771122), I was also wondering about the following (if I read this right):
checkRecipientKeys
does what it says and then shows the notification if encryption is possible but not enabled. The notification has an Encrypt
button. The button has a callback which then calls checkRecipientKeys
again even when recipients haven't changed.
Is this needed? I would probably expect a recheck whenever recipients change.
Assignee | ||
Comment 18•2 years ago
|
||
(In reply to Thomas D. (:thomas8) from comment #17)
The button has a callback which then calls checkRecipientKeys again even when recipients haven't changed.
Is this needed?
Yes, the function does different things, based on the encryption setting.
If the user enables encryption, the function checks the recipients, and adds a highlighting color for recipients that we cannot encrypt to.
You might say, but we know we can encrypt, because the button to enable encryption was shown. That's true, but we are an application with multiple windows, and an action in another window could have had the effect that encryption is no longer (e.g. the user changed acceptance for one of the keys).
Also, a key could still have been valid at the time we suggested to enable encryption, but a few seconds later, the key expired, and we can no longer encrypt.
I think it's safer to simply check again when we enable.
Assignee | ||
Comment 19•2 years ago
|
||
Geoff, could you please have a look at the patch? We need a hotfix for 102.
Assignee | ||
Comment 20•2 years ago
|
||
Thanks Geoff. Let's land this is as a temporary hotfix, and see if we can find a different cause later. Keeping bug open.
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 21•2 years ago
|
||
Depends on D149833
Updated•2 years ago
|
Updated•2 years ago
|
Comment 22•2 years ago
|
||
Pushed by nicolai@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/c4b6a72d280b
While still loading composer, don't broadcast encryption change events. r=darktrojan
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 23•2 years ago
|
||
Comment on attachment 9282132 [details]
Bug 1774991 - Don't call checkRecipientKeys() early during composer window loading. r=darktrojan
[Approval Request Comment]
Regression caused by (bug #): 1771122
User impact if declined: composer recipients fields will not be prefilled in multiple contexts
Testing completed (on c-c, etc.): yes
Risk to taking this patch (and alternatives if risky): low
Assignee | ||
Updated•2 years ago
|
Comment 25•2 years ago
|
||
Comment on attachment 9282132 [details]
Bug 1774991 - Don't call checkRecipientKeys() early during composer window loading. r=darktrojan
[Triage Comment]
Approved for beta
Comment 26•2 years ago
|
||
bugherder uplift |
Thunderbird 103.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/db98a4f935c5
Updated•2 years ago
|
Updated•2 years ago
|
Comment 27•2 years ago
|
||
Comment on attachment 9282132 [details]
Bug 1774991 - Don't call checkRecipientKeys() early during composer window loading. r=darktrojan
[Triage Comment]
Approved for esr102
Comment 28•2 years ago
|
||
bugherder uplift |
Thunderbird 102.0.2:
https://hg.mozilla.org/releases/comm-esr102/rev/262ab9a010b9
Description
•