Wrong behavior when master password Log in button is used for the first account
Categories
(Firefox :: about:logins, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox-esr68 | --- | unaffected |
firefox68 | --- | unaffected |
firefox69 | --- | disabled |
firefox70 | --- | wontfix |
People
(Reporter: mboldan, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: regression, Whiteboard: [passwords:primary-password])
Attachments
(1 file, 2 obsolete files)
(deleted),
image/gif
|
Details |
Affected versions
- 70.0a1
Affected platforms
*All Windows
- All Mac
- All Linux
Prerequisites
- A master password is set.
- No logins are saved.
Steps to reproduce
- Launch Firefox.
- Go to about:logins.
- Click on 'Create New Login' button and populate all the fields with valid data.
- Click the 'Save' button.
- Click the 'Cancel' button from the Master Password pop-up.
- Click the Log In button from the master password banner displayed below the URL bar.
Expected result
- All the entered data at step 3 is available and the Master Password pop-up is displayed.
Actual result
- All the data is deleted and no log in pop-up is displayed.
- about:logins page is displayed.
Regression range
I will investigate ASAP if this is a regression.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
I have confirmed locally that this bug is fixed by the patch in bug 1572478.
The issue is still reproducible with the provided steps on the latest Nightly 70.0a1 (2019-08-30) build even if the fix for bug 1572478 landed. Tested on Windows 7 x64, Mac 10.14 and Arch Linux 4.12.
If no logins are saved and a password master is set, when creating the first login the "Password Required" pop-up is displayed after clicking the "Save" button. If the "Cancel" button of the pop-up is clicked, a yellow banner warning is displayed on the top of the page that informs you that you need to enter your master password. If you press the "Log in" button from the banner, the "Create New Login" form is dismissed even if the fields are completed. From the QA point of view, the users might expect that the "Password Required" pop-up is redisplayed and the entered data is lost.
Considering this, I will reopen the issue.
Reporter | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Here is the regression range:
Last Good: 2019-07-18
First Bad: 2019-07-19
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=bc0fdcef296f2d429e3f4b5f29e264ffc185163d&tochange=23d4ebd5f8e70bb86f179556572b55655d6e066d
I don't realize which bug may be caused this issue, but I observe that the issue was introduced when the Logins and Passwords form was changed (Firefox Lockwise was introduced).
Updated•5 years ago
|
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
(In reply to Mihai Boldan, QA [:mboldan] from comment #0)
- Click the 'Save' button.
- Click the 'Cancel' button from the Master Password pop-up.
- Click the Log In button from the master password banner displayed below the URL bar.
Expected result
- All the entered data at step 3 is available and the Master Password pop-up is displayed.
If the user clicks cancel in step 5 then I don't think there should be an expectation that the information they typed is preserved since we need to encrypt their data with their master password and they denied that access.
Perhaps an easier fix would be to show the unsaved changes warning in this case? I don't think it's worth adding extra complexity to fix otherwise.
Comment 6•5 years ago
|
||
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #5)
If the user clicks cancel in step 5 then I don't think there should be an expectation that the information they typed is preserved since we need to encrypt their data with their master password and they denied that access.
Yes, but we also aren't obligated to delete their form data at this point either. We can instead just return them back to the form with their values preserved, let them make any changes they want, and click Save thus showing the prompt again.
Perhaps an easier fix would be to show the unsaved changes warning in this case? I don't think it's worth adding extra complexity to fix otherwise.
Implementing this adds extra complexity actually since the event is dispatched asynchronously, thus we can't use cancelable events + event.preventDefault, we would need to have a new listener that could listen for a failure response from the parent JSM.
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Mass removing [skyline] and [passwords:management] from about:logins bugs which are no longer useful.
As mentioned above...
Yes, but we also aren't obligated to delete their form data at this point either. We can instead just return them back to the form with their values preserved, let them make any changes they want, and click Save thus showing the prompt again.
UX recommendation:
Expectation - User populated data fields should retain content until the user actively selects Cancel (intentionally backs out of the add new login flow).
Comment 10•4 years ago
|
||
What's the plan with this bug?
Comment 11•4 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #10)
What's the plan with this bug?
The approach wasn't ideal, is for an edge case, was possibly going to be obsoleted by other improvements to authentication on about:logins, and now needs rebasing on bug 1639347.
Do you have a need for it? If so, it would be helpful to save a round-trip and give more context in advance.
Comment 12•4 years ago
|
||
Do you have a need for it? If so, it would be helpful to save a round-trip and give more context in advance.
Sorry, should have definitely given more context. You had mentioned this bug in reference to my master password policy work so I wanted to know if I needed to worry about it or go ahead and get my patch reviewed and landed.
Comment 13•4 years ago
|
||
You can go ahead and get your patch reviewed and landed.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•3 years ago
|
Comment hidden (abuse-reviewed) |
Updated•2 years ago
|
Description
•