Closed Bug 1831248 Opened 2 years ago Closed 1 year ago

Password not hidden after clicking 'Hide password' button while creating new login on 'about:logins' page.

Categories

(Firefox :: about:logins, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox112 --- unaffected
firefox113 --- wontfix
firefox114 --- wontfix
firefox115 --- verified
firefox116 --- verified

People

(Reporter: buglinking, Assigned: issammani, Mentored)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fxcm-productive-ux])

Attachments

(2 files, 1 obsolete file)

[Affected versions]:

114.0a1 (2023-05-03) (64-bit)

[Affected Platforms]:

macOS 13.3.1 (22E261)

[Steps to reproduce]:

  1. Open the latest Nightly browser.
  2. Navigate to "about:logins" page.
  3. Click the "Create new login" button.
  4. Enter the password.
  5. Click the "Show password" button.
  6. Click the "Hide password" button.

[Expected Results]:
The password should be hidden.

[Actual Results]:
The password is still being displayed.

Hello, as a beginner, I would like to fix this bug as my first contribution. Could I be assigned to work on this bug?

Hey buglinking, thanks for catching this one!

I believe Micah is working to remove that reveal button completely, I'll let her decide if we want to fix it here or it will not be a problem because there will be no such button.

Flags: needinfo?(mtigley)

Issue reproduced, with the indicated steps, on MacOs 12 and Win 11 with Fx versions 113.0b9, 114.0a1 (2023-05-04).
It does not reproduce with Fx versions: 102.11.0esr and 112.0.2.

Mozregression info:

Related behaviour - on affected versions, the Password is automatically hidden when focus is switched from the Password input field:

  1. Launch Firefox.
  2. Go to about:logins page.
  3. Create new login.
  4. Use Tab to navigate to the Show/Hide Password button.
  5. Once it is in focus, press Space.

Actual results:

  • unaffected Fx versions : the focus is maintained on the Show/Hide button and the button works as expected.
  • affected Fx versions: the focus switches to the Password input field and the pass is visible.
    Switch focus to any other area and the password becomes hidden. Click on the Pass input field, the pass remains hidden.
Severity: -- → S3
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Regressed by: 1654665
Hardware: Unspecified → Desktop
Version: Firefox 114 → other

Set release status flags based on info from the regressing bug 1654665

Apologies for the delay here.

The work for removing the password button is just about there. The remaining work requires tests to be fixed. I don't have an estimate for when that will be finished, so I propose a temporary workaround in the meantime:

I've narrowed the issue down to this block of code: https://searchfox.org/mozilla-central/rev/11a4d97a7b5cdfa133f4bda4525649f651703018/browser/components/aboutlogins/content/components/login-item.mjs#330-334. When the reveal button is clicked, the password input receives the "blur" event, which causes the reveal checkbox to toggle the password visibility again.

Perhaps a temporary workaround is to avoid focusing the field when the reveal button is clicked at _updatePasswordRevealState. Serg, let me know what you think!

Flags: needinfo?(mtigley)

IMO, getting a spot fix landed for this instead of waiting for bug 1750072 would make sense.

Flags: needinfo?(sgalich)

Micah, should we assign this bug to somebody? The reporter maybe? Thanks!

Flags: needinfo?(mtigley)

(In reply to Pascal Chevrel:pascalc from comment #7)

Micah, should we assign this bug to somebody? The reporter maybe? Thanks!

I'm glad to fix it! Thanks

buglinking feel free to attach the patch, it will automatically assign this bug to you. Thank you!

Flags: needinfo?(sgalich)

(In reply to Sergey Galich [:serg] from comment #9)

buglinking feel free to attach the patch, it will automatically assign this bug to you. Thank you!
It is my first time to try to fix a bug, could you please be my mentor?

Hi buglinking! Is this your first time contributing to Firefox? It'll be good to make sure you've completed the steps outlined here: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html#firefox-contributors-quick-reference

Flags: needinfo?(mtigley)
Flags: needinfo?(buglinking)

:serg has there been any progress on mentoring this bug or a timeline on a fix?
Wondering what expectations we have around fix in time for 115?

Flags: needinfo?(sgalich)
Assignee: nobody → imani
Attachment #9339140 - Attachment description: WIP: Bug 1831248 - Fix conceal/show button not working properly. r=mtigley! → Bug 1831248 - Fix conceal/show button not working properly. r=mtigley!
Pushed by imani@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0547cc178179 Fix conceal/show button not working properly. r=mtigley
Whiteboard: [fxcm-productive-ux]
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

Fixes password input behaviour.

  • The password text will be revealed when focused from oustide (i.e not triggered by reveal button )
  • The password text will be concealed when blurred.
  • The password text will show / hide depending on reveal button state. Edit is possible when password is hidden by reveal button.

Old behaviour:
{F4936523}

Current behaviour:
{F4936530}

Original Revision: https://phabricator.services.mozilla.com/D180979

Attachment #9339449 - Flags: approval-mozilla-beta?
Attachment #9339449 - Attachment is obsolete: true
Attachment #9339449 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • User impact if declined: Users are not able to conceal their password while typing in about:logins form
  • Fix verified in Nightly: no
  • Is Android affected?: no
  • Steps to reproduce for manual QE testing: See videos attached in patch.
  • Code covered by automated testing: no
  • Needs manual QE test: no
  • Risk associated with taking this patch: None
  • String changes made/needed: No
  • Explanation of risk level: The user is able to hide their password while typing in an input in about:logins. No risk is associated with this patch.
Attachment #9339449 - Attachment is obsolete: false
Attachment #9339449 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • Risk associated with taking this patch: None
  • Needs manual QE test: no
  • String changes made/needed: No
  • Explanation of risk level: The user is able to hide their password while typing in an input in about:logins. No risk is associated with this patch.
  • User impact if declined: Users are not able to conceal their password while typing in about:logins form
  • Fix verified in Nightly: no
  • Is Android affected?: no
  • Steps to reproduce for manual QE testing: See videos attached in patch.
  • Code covered by automated testing: no

Comment on attachment 9339449 [details]
Bug 1831248 - Fix conceal/show button not working properly. r=mtigley!

Approved for 115.0b7.

Attachment #9339449 - Attachment is obsolete: true
Attachment #9339449 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Reproducible on a 2023-06-13 Nightly build on Windows 10 using the steps from Comment 0.
Verified as fixed on Firefox 115.0b7(build ID: 20230618180218) and Nightly 116.0a1(build ID: 20230619213151) on Windows 10, macOS 12, Ubuntu 22.
The ‘eye’ button now works accordingly.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Flags: needinfo?(sgalich)
Flags: needinfo?(buglinking)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: