deleting of SMTP-Account does not delete corresponding entry in password-manager
Categories
(MailNews Core :: Account Manager, defect)
Tracking
(thunderbird68 fixed, thunderbird69 fixed)
People
(Reporter: hubertus, Assigned: aceman)
References
Details
(Keywords: privacy, Whiteboard: SMTP password visible after deletion)
Attachments
(1 file, 1 obsolete file)
6.37 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
Reporter | ||
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 7•8 years ago
|
||
Updated•8 years ago
|
This should do it, removes password also on username or hostname change, similar to the incoming servers.
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
![]() |
Assignee | |
Comment 12•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #11)
// Get the current server URI without the username
- NS_ConvertASCIItoUTF16 serverUri(GetServerURIInternal(false));
The original code had
NS_ConvertUTF8toUTF16 currServer(serverUri);
so why
switch this to ASCII now?
All occurrences of GetServerURIInternal() do it like this when they need UTF16.
Especially the one at https://searchfox.org/comm-central/rev/9f64b3c10baf73678700dbb7b82020ce0f54ae34/mailnews/compose/src/nsSmtpServer.cpp#391 which is fetching the password too.
@@ -521,5 @@
do_GetService(NS_LOGINMANAGER_CONTRACTID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
// Get the current server URI without the username
- nsAutoCString serverUri(NS_LITERAL_CSTRING("smtp://"));
Interesting clean-up, how did you find this duplicated code?
I don't remember, I did this a long time ago but probably forgot to upload the patch.
Maybe it is from https://searchfox.org/comm-central/rev/9f64b3c10baf73678700dbb7b82020ce0f54ae34/mailnews/compose/src/nsSmtpServer.cpp#391 which does what we need here.
Comment 13•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/166aaa29faa1
delete SMTP server login credentials when deleting the account or if hostname/username changes. r=mkmelin
Updated•6 years ago
|
Updated•6 years ago
|
Comment 14•6 years ago
|
||
TB 68 beta 2:
https://hg.mozilla.org/releases/comm-beta/rev/ddad01cf38846c38d01e20316f82a3eb6e22937d
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
Description
•