Closed Bug 530367 Opened 15 years ago Closed 15 years ago

Password Number and Letter combos flash in clear text when password manager fills in password field

Categories

(Toolkit :: Password Manager, defect, P1)

1.9.2 Branch
ARM
All
defect

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- beta5-fixed
fennec 1.0+ ---

People

(Reporter: blassey, Assigned: blassey)

References

Details

(Keywords: regression, Whiteboard: [can land 1.9.2])

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
+++ This bug was initially created as a clone of Bug #526880 +++

spinning out as a new bug for the password flashing as clear text.
Attachment #413876 - Flags: review?(neil)
Summary: [WinCE] Password Number and Letter combos show in Password field while typing → [WinCE] Password Number and Letter combos flash in clear text when password manager fills in password field
Flags: blocking1.9.2?
Blocks: 526880
No longer depends on: 526880
tracking-fennec: --- → ?
Sorry, from reading bug 526880 I can't figure out why this is nominated to block? Can someone explain the issue and product decision?
Gavin explained it: the plaintext password shows up for a long enough period as to expose it. Maybe not a problem on Fennec, but definitely a problem on WinCE where the screen is a touch bigger and more computer like.
Flags: blocking1.9.2? → blocking1.9.2+
When you load a page and the password manager fills in your passwords, they are clear text for 6/10s of a second before being replaced by asterisks. So anyone with access to your device can get your passwords from the password manager by loading the pages in the browser, which is not the desired behavior.
Flags: blocking1.9.2+ → blocking1.9.2?
Flags: blocking1.9.2? → blocking1.9.2+
(In reply to comment #2)
> Maybe not a problem on Fennec, but definitely a problem on WinCE

still a problem for Fennec since the danger isn't in someone snooping over your shoulder, but instead picking up your device.
Whiteboard: [needs review]
tracking-fennec: ? → 1.0+
Severity: blocker → critical
OS: Windows CE → All
Summary: [WinCE] Password Number and Letter combos flash in clear text when password manager fills in password field → Password Number and Letter combos flash in clear text when password manager fills in password field
(Paraphrased from bug 526880 comment #11)
The code for password manager filling in the password field goes through nsTextControlFrame.cpp which already has to modify the editor flags to deal with various edge cases, so I think it might be better to move the fix there.
Attached patch patch v.2Splinter Review
Attachment #414449 - Flags: review?(neil)
Comment on attachment 414449 [details] [diff] [review]
patch v.2

>+, mTimer(nsnull)
nsCOMPtr defaults to nsnull anyway, no?
Attachment #414449 - Flags: review?(neil) → review+
Attachment #413876 - Flags: review?(neil)
(In reply to comment #7)
> (From update of attachment 414449 [details] [diff] [review])
> >+, mTimer(nsnull)
> nsCOMPtr defaults to nsnull anyway, no?

I believe so, I guess that change isn't needed.
Comment on attachment 414449 [details] [diff] [review]
patch v.2

I'm asking for approval even though this is already blocking because this has an interface change.  I propose removing eEditorDontEchoPassword from nsIPlaintextEditor and replacing it with a comment saying 0x1000 is being used to stop password echoing. and just using a hard coded 0x1000 in nsTextEditRules.cpp and nsTextControlFrame.cpp. Its a bit hacky, but avoids having to create a nsIPlaintextEditor_BRANCH_1_9_2.
Attachment #414449 - Flags: approval1.9.2?
Attachment #413876 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs review]
Target Milestone: --- → mozilla1.9.3a1
Adding a constant to an interface isn't an incompatible change, so there's no need to worry about it - you can just land as is.
Keywords: checkin-needed
Whiteboard: [can land 1.9.2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: