Closed Bug 1632405 Opened 5 years ago Closed 5 years ago

Save/Update doorhanger on form submit is not displayed for fields where new credentials were filled in after deleting autofilled ones or field edits

Categories

(Toolkit :: Password Manager, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
mozilla77
Tracking Status
firefox-esr68 --- unaffected
firefox75 --- unaffected
firefox76 --- unaffected
firefox77 --- verified

People

(Reporter: tbabos, Assigned: severin)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1627658 +++

Affected Versions
Nightly 77.0a1(2020-04-22)

Tested on
Windows 10 x64

Steps to reproduce

  1. Have 1 set of credentials saved on facebook.com
  2. Load the Log in Form (ensure credentials are autofilled)
  3. Delete the autofilled credentials and type in new ones (observe the grey key icon)
  4. Click on Log In

Expected
The save doorhanger should be displayed on form submit (replaces the dismissed one)

Actual
Save doorhanger on form submit is not displayed, the grey key for the dismissed doorhanger remains displayed

Regression-Range
This regressed recently on Nightly due to Bug 1532377.
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=6c5eddde0f5b187cb6891549d0d279394cd65423&tochange=cf66def9cbd002f21bab8e55083a165f82ea0217

Hey Severin, could you take a look at this when you have the time? Thanks!

Flags: needinfo?(severin.mozilla)

Severin, can you take this after bug 1630191? This doesn't affect 76 so is lower priority than that one. Maybe your fix for that can take this bug into account and address both? I don't have enough context to know if that makes sense but they seem related.

Flags: qe-verify+
Priority: -- → P1

Will do!

Flags: needinfo?(severin.mozilla)
Assignee: nobody → severin.mozilla
Status: NEW → ASSIGNED

RCA:
Bug 1532377 moved docState (inside _maybeSendFormInteractionMessage) closer to its use site. This accidentally changed the order of a short, which resulted in site-prompted changes being saved in _compareAndUpdatePreviouslySentValues, later causing _compareAndUpdatePreviouslySentValues to return false on true form submit events.

This also affects the scenarios when we:
Edit the autofilled username or password and hit Log in.

Expected:
Save credentials or update password doorhanger should be displayed on form submit.
Actual:
The above-mentioned doorhangers are not displayed.

Summary: Save doorhanger on form submit is not displayed for fields where new credentials were filled in after deleting autofilled ones → Save/Update doorhanger on form submit is not displayed for fields where new credentials were filled in after deleting autofilled ones or field edits
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/87f89c55ae64 Fix login autofill-> delete-> fill-> save flow;r=MattN
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Regressions: 1633960

Verified-fixed on the latest Nightly 77.0a1 (2020-05-03) on Windows 10 x64, MacOS 10.13 and Ubuntu 16.04.
The Save/Update doorhnager appears when on form submit when:

  1. New credentials are typed in after clearing autofilled ones
  2. The username or the password of autofilled credentials are edited
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: