Closed Bug 2037803 Opened 4 months ago Closed 4 months ago

A password characters are displayed in Print Preview and also printed

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 150
defect

Tracking

()

VERIFIED FIXED
152 Branch
Tracking Status
relnote-firefox --- 150+
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox150 + verified
firefox151 + verified
firefox152 + verified

People

(Reporter: msmucr, Assigned: emilio)

References

(Regression)

Details

(4 keywords, Whiteboard: [adv-main150.0.3-])

Attachments

(4 files)

Steps to reproduce:

Take any form with password input, for example:

<html>
<h1>Welcome</h1>
<form>
    <div>
        <label>User:</label>
        <input id="username" type="text">
    </div>
    <div>
        <label>Password:</label>
        <input id="password" type="password">
    </div>
    <div>
        <input id="submit" type="button" value="Log In">
    </div>
</form>
</html>

Actual results:

Plain characters are displayed in Print preview dialog (a pic is attached) and printed.

The issue happens with current Firefox 150.0.1, Nightly 152.0a1 (2026-05-07) on Mac, Linux and Windows. The ESR version 140.10.0 seems fine.

The original report of the problem:
https://www.deskmodder.de/phpBB3/viewtopic.php?t=34293

Expected results:

Characters should be normally masked by dots like on main page view.

Keywords: sec-other

[Tracking Requested - why for this release]:There is a risk that passwords could be leaked unintentionally

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

Could restrict it to static clones but doesn't seem worth it.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Severity: -- → S3
Flags: in-testsuite+

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59731 for changes under testing/web-platform/tests

Duplicate of this bug: 2037924
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

Upstream PR merged by moz-wptsync-bot

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

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: One-liner regression fix
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: targetted fix to a flag that's only set by editor
  • String changes made/needed?: none
  • Is Android affected?: yes
Attachment #9584544 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Could restrict it to static clones but doesn't seem worth it.

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

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: One-liner regression fix
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: targetted fix to a flag that's only set by editor
  • String changes made/needed?: none
  • Is Android affected?: yes
Attachment #9584545 - Flags: approval-mozilla-release?

Could restrict it to static clones but doesn't seem worth it.

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

Flags: needinfo?(emilio)

Thank you for the prompt flag fix. Just successfully tested in the recent Nightly.

Attachment #9584544 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9584545 - Flags: approval-mozilla-release? → approval-mozilla-release+
QA Whiteboard: [uplift][qa-ver-needed-c152/b151]
Whiteboard: [adv-main150.0.3-]

I was able to reproduce the issue on Win11x64 using FF build 152.0a1(20260507083759) and the html from description.
Verified as fixed on Win11x64/Mac15.5/Ubuntu24.04 using FF builds 152.0a1(20260511160144), 151.0b9(20260511090442) and 150.0.3(20260511200624).

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift][qa-ver-needed-c152/b151] → [uplift][qa-ver-done-c152/b151]
Flags: qe-verify+
QA Contact: mchiorean
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: