Closed Bug 1720950 Opened 4 years ago Closed 3 years ago

[OpenPGP] user-unfriendly options when offering to import .asc key attachments

Categories

(MailNews Core :: Security: OpenPGP, defect)

Thunderbird 92
defect

Tracking

(thunderbird_esr91+ fixed, thunderbird92+ fixed)

RESOLVED FIXED
93 Branch
Tracking Status
thunderbird_esr91 + fixed
thunderbird92 + fixed

People

(Reporter: gus.andrews, Assigned: mkmelin)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

May be the same as bug 1704820

Mac Big Sur 11.4, Daily 92.0a1 (2021-07-13) (64-bit)
I send my account an unencrypted email from my Gmail account, with a .asc public key attached
I send my account an unencrypted email from another account, with the same .asc public key attached
I double-click each email to open them
I expand the "attachments" footer in each email

Actual results:

When I right-click on the attachment in one email, it gives me the “Import OpenPGP Key” option. When I right-click on the attachment in the other email, the "Import OpenPGP Key" option cannot be selected and only the "Decrypt and open" and "Decrypt and save as" options are available. (See attached.) It is not clear what causes the difference between those options; trying these steps again I got the result that neither attachment gave me the "import" option, only the "decrypt" options.

Expected results:

Any key attachment should give the user the "Import OpenPGP Key" option on right click. It is possible that should even be the option on click; right-click seems like extra effort and hiding the option from the user.

"Decrypt and save as" will save keys somewhere else on the user's device, where they may lose track of the keys and might struggle to get them imported to OpenPGP's key manager to use them.

Component: Untriaged → Security: OpenPGP
Product: Thunderbird → MailNews Core

I noticed errors weren't shown properly for decryp failure, since the Fluent file was not included in messenger.xhtml

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: [OpenPGP] Uneven user-unfriendly options when offering to import .asc key attachments → [OpenPGP] user-unfriendly options when offering to import .asc key attachments

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b0275aea861b
hide irrelevant context menu items related to OpenPGP and attachments. r=PatrickBrunschwig

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch

Comment on attachment 9235985 [details]
Bug 1720950 - hide irrelevant context menu items related to OpenPGP and attachments. r=PatrickBrunschwig

[Approval Request Comment]
Regression caused by (bug #): not a regression
User impact if declined: Confusing UX: OpenPGP related attachments menus disabled instead of hidden. But importantly also fixes the missing string include which means in error situations a blank dialog was shown (we never got any report about it though)
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): Not risky.

Attachment #9235985 - Flags: approval-comm-esr91?
Attachment #9235985 - Flags: approval-comm-beta?

Comment on attachment 9235985 [details]
Bug 1720950 - hide irrelevant context menu items related to OpenPGP and attachments. r=PatrickBrunschwig

[Triage Comment]
Approved for beta

Attachment #9235985 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9235985 [details]
Bug 1720950 - hide irrelevant context menu items related to OpenPGP and attachments. r=PatrickBrunschwig

[Triage Comment]
Approved for esr91

Attachment #9235985 - Flags: approval-comm-esr91? → approval-comm-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: