Closed Bug 2001459 Opened 1 month ago Closed

DisablePasswordReveal enterprise policy no longer hides the show password button

Categories

(Firefox :: about:logins, defect)

defect

Tracking

()

VERIFIED FIXED
147 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- verified
firefox145 --- wontfix
firefox146 --- verified
firefox147 --- verified

People

(Reporter: mkaply, Assigned: mkaply, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

I have no idea when this started (it was a while ago).

We have a policy called DisablePasswordReveal that used to remove the show password eye from about:logins.

It was implemented a long time ago in Firefox 71 (unfortunately with no test).

As of now, it doesn't work.

Oddly, all of the infrastructure to make it work is still in the password manager:

https://searchfox.org/firefox-main/source/browser/components/aboutlogins/AboutLoginsParent.sys.mjs#320

passwordRevealVisible: Services.policies.isAllowed("passwordReveal"),

but about:logins doesn't appear to be honoring that passwordRevealVisible flag anymore.

This clearly happened a while ago, but no one noticed.

I'm not sure what the expected behavior of this policy setting is since I've never seen it functional. My understanding was it affected right clicking inside the password box and accessing 'reveal password' context menu item.

From firefox.adml

<string id="DisablePasswordReveal">Do not allow passwords to be revealed in saved logins</string>
<string id="DisablePasswordReveal_Explain">If this policy is enabled, the user cannot show passwords in saved logins.

If my assumption is correct, this would also go hand in hand with a about:config setting that no longer exists:

layout.forms.reveal-password-context-menu.enabled

Yep, that was the problem.

I think I'll add a test for it this time.

Keywords: regression
Regressed by: 1654665

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

:mtigley, since you are the author of the regressor, bug 1654665, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

So I figured out what happened with the test.

When this feature was originally implemented, the reveal button showed when creating a new entry.

This was changed so that we just always show the password during creation and the reveal button is not visible at all.

Since the test was checking for whether or not the reveal button was visible, it continued to pass.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Pushed by mozilla@kaply.com: https://github.com/mozilla-firefox/firefox/commit/1e84ee418f19 https://hg.mozilla.org/integration/autoland/rev/db29592c6377 Don't show reveal button if DisablePasswordReveal policy is set. r=mtigley,credential-management-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch

The patch landed in nightly and beta is affected.
:mkaply, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mozilla)

firefox-beta Uplift Approval Request

  • User impact if declined: Broken policy behavior reported by customer
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Just moves some existing code.
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9529354 - Flags: approval-mozilla-beta?

firefox-esr140 Uplift Approval Request

  • User impact if declined: Broken policy behavior reported by customer
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Just moves some existing code.
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9529356 - Flags: approval-mozilla-esr140?

Verified - Fixed in Nightly 147.0a1 (2025-11-27). The password reveal button is not displayed when the DisablePasswordReveal policy is applied.

QA Whiteboard: [qa-ver-needed-c147/b146]
QA Contact: ailea
Attachment #9529354 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9529356 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+

Verified - Fixed in Beta 146.0(build id: 20251201213807) and 140.6.0esr(build id: 20251201132345). The password reveal button is not displayed when the DisablePasswordReveal policy is applied. Also the policy is displayed under Active in about:policies, with the value true.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c147/b146] → [qa-ver-done-c147/b146]
Component: Password Manager → about:logins
Product: Toolkit → Firefox
Flags: needinfo?(mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: