Port bug 1194529: Ask the user for their OS account password before showing the password dialogs
Categories
(Thunderbird :: Preferences, task)
Tracking
(Not tracked)
People
(Reporter: Paenglab, Assigned: Paenglab)
References
(Depends on 1 open bug)
Details
Attachments
(2 files, 4 obsolete files)
|
44.75 KB,
image/png
|
Details | |
|
10.90 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
This bug is to use the OS to check if the current user is the one that logged in.
| Assignee | ||
Comment 1•5 years ago
|
||
Tested on all platforms when trying to set a master password or showing/copying the passwords in the Saved Passwords dialog. On Linux, entered once it remembers it during the session.
On Windows it doesn't show the brand name automatically like FX. For this I had to add the messageTitle. And this is a bit weird as I needed to add the -brand-full-name in the other two FTL files as a variable. Directly reference it in the JS files doesn't work because of the leading dash (I tested this with removing it).
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
| Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Matthew N. [:MattN] (PM me if request are blocking you) from comment #3)
Comment on attachment 9133210 [details] [diff] [review]
1622293-ask-OS-password.patchReview of attachment 9133210 [details] [diff] [review]:
::: mail/components/preferences/passwordManager.js
@@ -481,5 @@"PWMGR_MANAGE_VISIBILITY_TOGGLED");
}-async function AskUserShowPasswords() {
Since OSKeyStore doesn't work on Linux yet you may want to leave this for
them.
Hmm, I see a dialog on Linux, see screenshot. What doesn't work on Linux?
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
| Assignee | ||
Comment 7•5 years ago
|
||
This should fix all of Matt's comments. I missed to port bug 1506602.
I added now in passwordManager.js a check, if Linux, then show the TB confirm dialog.
| Assignee | ||
Comment 8•5 years ago
|
||
Updated patch to follow bug 1622304.
Comment 9•5 years ago
|
||
| Assignee | ||
Comment 10•5 years ago
|
||
Updated patch using the toolkit OSKeyStore.jsm.
This time linting works locally and I get:
z:/Mozilla/comm-central/comm/mail/components/preferences/passwordManager.js
843:5 error Async function 'masterPasswordLogin' expected no return value. consistent-return (eslint)
856:3 error Async function 'masterPasswordLogin' expected no return value. consistent-return (eslint)
Please can you guide me what is needed to fix this? Removing the return values makes the passwords no more shown.
Comment 11•5 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #10)
Created attachment 9135911 [details] [diff] [review]
1622293-ask-OS-password.patchUpdated patch using the toolkit OSKeyStore.jsm.
This time linting works locally and I get:
z:/Mozilla/comm-central/comm/mail/components/preferences/passwordManager.js
843:5 error Async function 'masterPasswordLogin' expected no return value. consistent-return (eslint)
856:3 error Async function 'masterPasswordLogin' expected no return value. consistent-return (eslint)Please can you guide me what is needed to fix this? Removing the return values makes the passwords no more shown.
Don't remove the return, instead have it return a consistent type. You are adding return; without a value which existing returns are returning a value (a boolean?).
Comment 12•5 years ago
|
||
| Assignee | ||
Comment 13•5 years ago
|
||
Linting is okay now and it works on Mac/Windows with the system dialog and on Linux with the show password dialog.
Strings fixed.
Comment 14•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/92e53e3108d1
Port bug 1194529: Ask the user for their OS account password before showing the password dialogs. r=mkmelin
Updated•5 years ago
|
Description
•