Truncated OK button in OpenPGP `Success! Keys imported` dialog
Categories
(MailNews Core :: Security: OpenPGP, defect)
Tracking
(thunderbird_esr102 unaffected, thunderbird115 fixed, thunderbird116+)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr102 | --- | unaffected |
| thunderbird115 | --- | fixed |
| thunderbird116 | + | --- |
People
(Reporter: thomas8, Assigned: mkmelin)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [snnot3p])
Attachments
(2 files, 2 obsolete files)
|
145.83 KB,
image/png
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
+++ This bug was initially created as a clone of Bug #1831790 +++
Seen on Daily 115.0a1 (2023-05-09) (64-bit), Win10, or well, a couple of days earlier.
STR:
- Compose new message from OpenPGP enabled account
- Press Encrypt button in composition toolbar so that Encrypt+OpenPGP are active
- Add recipient whose public key you haven't imported yet.
- From yellow notification bar "End-to-end encryption requires resolving key issues...", click
Resolve - On
OpenPGP Key Assistantdialog, clickImport Public Keys From File... - Select a public key file and confirm that
- Check the layout of the resulting little
Success: Keys importeddialog wrt OK button.
Actual:
- OK button is truncated at the bottom, dialog too small
Expected:
- Show all of OK button
Probably a regression from bug 1820744, flexbox changes.
| Assignee | ||
Comment 1•2 years ago
|
||
The dialog in question was really atrocious. Just alert about what happened instead.
Open coding it so we can eventually get rid of EnigmailDialog.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I agree that the old dialog was ugly, however, it offered the ability to view the key immediately, and potentially verify it, and immediately change its acceptance property.
Magnus, with your approach, you only show a short summary with the key ID, which makes it hard to do the above. If you have many keys, it isn't easy to find that key afterwards in the key manager.
Can you think of a way to extend your solution, by adding a "view key" button to that alert, which would then open a modal dialog, showing the keyDetailsDlg for that key?
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
My reasoning was this: in most scenarios all information about they key (keys) is shown on the prior import screen, which also includes the option to set as accepted or not. With that in mind, the need to take any action after seems somewhat questionable. Inspecting keys is a pretty weird thing to do for any normal user to begin with. Further to this, opening details from that is usually a 3rd layer of nested dialogs :/
Comment 4•2 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #3)
My reasoning was this: in most scenarios all information about they key (keys) is shown on the prior import screen, which also includes the option to set as accepted or not.
There is at least one scenario in which we don't show a prompt prior to importing - it's when silently updating a key, because we already have a found key, we learn it's a reasonable thing to automatically import the updated key. Then we don't ask for permission, we just import. In this scenario, it was good to have the ability to view the updated key with a click, to learn what's new.
I realize my previous suggestion from comment 2 doesn't work if we'd like to tell the user about more than 1 imported/updated key.
With that in mind, the need to take any action after seems somewhat questionable. Inspecting keys is a pretty weird thing to do for any normal user to begin with.
I think you're trying to say that only "experts" might want to view that information? I think that isn't a sufficient argument to removal, if the experts still want it.
Further to this, opening details from that is usually a 3rd layer of nested dialogs :/
Well, I'm open to suggestions to reduce the amount of modal dialog layering. But I think it must be possible to find a way to present information.
If we cannot stack another layer on top, we need a solution that has one level dialog, and dynamically replace the contents of that dialog - just like it's done in the key assistant dialog.
| Assignee | ||
Comment 5•2 years ago
|
||
(In reply to Kai Engert (:KaiE:) from comment #4)
There is at least one scenario in which we don't show a prompt prior to importing - it's when silently updating a key, because we already have a found key, we learn it's a reasonable thing to automatically import the updated key. Then we don't ask for permission, we just import. In this scenario, it was good to have the ability to view the updated key with a click, to learn what's new.
Maybe there are multiple entry points, but I think we'd still be showing confirmation only as response to user action, and for that case you would normally be looking at the key in the dialog below.
I think you're trying to say that only "experts" might want to view that information? I think that isn't a sufficient argument to removal, if the experts still want it.
No, I think only for debugging purposes perhaps.
Well, I'm open to suggestions to reduce the amount of modal dialog layering. But I think it must be possible to find a way to present information.
I think the whole process would need some overhaul. But that's a larger project.
Updated•2 years ago
|
| Assignee | ||
Comment 6•2 years ago
|
||
Rework the dialog to just a list of imported keys, with their ids.
The ids can be clicked to open the key ketails and check properties.
Updated•2 years ago
|
| Assignee | ||
Comment 7•2 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/8e7ded91a4f2
Make key import info dialog buttons show. r=aleca
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 9•2 years ago
|
||
Comment on attachment 9340674 [details]
Bug 1832369 - Make key import info dialog buttons show. r=aleca
[Approval Request Comment]
Very safe regression fix
Comment 10•2 years ago
|
||
Comment on attachment 9340674 [details]
Bug 1832369 - Make key import info dialog buttons show. r=aleca
[Triage Comment]
Approved for beta
Comment 11•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 115.0b6:
https://hg.mozilla.org/releases/comm-beta/rev/0d8ba7ca065b
Description
•