Add username (and host) to password dialog's title
Categories
(MailNews Core :: Backend, enhancement)
Tracking
(Not tracked)
People
(Reporter: ns-bugmozilla-19580, Assigned: ns-bugmozilla-19580)
Details
Attachments
(2 files, 6 obsolete files)
|
14.60 KB,
image/png
|
Details | |
|
12.47 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
Start Thunderbird, then be asked for the password.
Actual results:
Password dialog pops up
Expected results:
The password dialog should have a less generic title to help users of password managers to use the AutoType feature.
I wrote a XUL extension that overlays the password dialog and changes the title (https://addons.thunderbird.net/en-US/developers/addon/password-dialog-title), but this is not possible with MailExtensions.
This simple change (simply put more text into the title) would help all users of external password managers.
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Thanks for the report! Magnus, can you someone from the team mentor Jonny on writing a patch for bug? It seems to me this would be a simple addition with a clear use case. It is possible that this should be fixed in Toolkit instead, so we might have to ask there.
| Assignee | ||
Comment 2•6 years ago
|
||
Here comes the patch. Compiling thunderbird myself was too complicated, though (my disk has not enough space to clone mozilla-central for mach :o)
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:📆] from comment #1)
Toolkit doesn't use this dialog anywhere anymore, I think.
| Assignee | ||
Comment 5•6 years ago
|
||
Seems to be the risk that the title gets super long (and titles can't wrap).
That's true. For me and probably the most users we could also leave out the hostname, as probably everyone is using the email address or something similar unique as username.
The information is already in the body of the dialog. What are such password managers looking for, and where?
The password manager I (and many others) are using is KeePass or KeePassXC. Both only use the dialog's title to match the entry in the database:
https://keepass.info/help/base/autotype.html#autowindows
https://github.com/keepassxreboot/keepassxc/blob/d007ee97e3eb794a384776e75192126c857bf74f/src/autotype/AutoType.cpp#L285
From the technical side: we need to bump the localization key, when changing the value. But, seems you already have the suitable value available as a key (like pop3EnterPasswordPrompt)
Ah, ok. I can create a new patch if you want me to. With or without hostname? :)
For Firefox, there are also addons that connect to KeePassXC, e.g.:
https://github.com/keepassxreboot/keepassxc-browser
But as far as I found out (using Google) there is no possibility to do this for Thunderbird with MailExtensions. Is this correct?
Comment 6•6 years ago
|
||
I'd go without the hostname
| Assignee | ||
Comment 7•6 years ago
|
||
I have created a new patch with two changes:
- The localization strings XXXTitle are replaced by XXXTitleWithUsername
- The localization strings do not contain the hostname anymore
Hopefully "normal" indexing ([0]) works on AutoTArrays :)
| Assignee | ||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 9•6 years ago
|
||
As requested :)
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Assignee is the guy/girl fixing the bug.
Comment 11•6 years ago
|
||
| Assignee | ||
Comment 12•6 years ago
|
||
Unfortunately I do not have enough disk space to compile mach, not even to check out the complete archive.
So can you run clang-format for me? I will happily apply your patch afterwards to fix further things if necessary.
I fixed the compilation error by creating another array with the username as only element, and change the imap title as you suggested.
How about changing the smtp title again, so that all 3 of them are the same?
Comment 13•6 years ago
|
||
The SMTP is different since you can use that for multiple usernames, so I think that should stay.
Comment 14•6 years ago
|
||
Made it compile. Also using CopyUTF8toUTF16 instead.
Comment 15•6 years ago
|
||
Updated•6 years ago
|
Comment 16•6 years ago
|
||
Ah, I notice now it's wrong for smtpEnterPasswordPromptTitleWithUsername
Comment 17•6 years ago
|
||
Fixed that too
Updated•6 years ago
|
Updated•6 years ago
|
Comment 18•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/807fb40cb098
Add username (and host) to password dialog's title. r=mkmelin
| Assignee | ||
Comment 19•6 years ago
|
||
Great, thanks!
But smtpEnterPasswordPromptTitleWithUsername would have been better, with your rationale: you can use that for multiple usernames. Each username, even on the same server, should have a different password and thus be distinguishable by the title for the password database.
Description
•