Closed Bug 343285 Opened 20 years ago Closed 18 years ago

Copy should be disabled for password fields

Categories

(Camino Graveyard :: Toolbars & Menus, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.6

People

(Reporter: peeja, Assigned: stuart.morgan+bugzilla)

Details

(Keywords: fixed1.8.1.12)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a3) Gecko/20060629 Camino/1.0+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a3) Gecko/20060629 Camino/1.0+ With text selected in a password field, copy should be disabled. Currently, a password cannot be copied out of the field, but the state of the Copy command should reflect this. Reproducible: Always Steps to Reproduce: 1. Enter text into a password field. 2. Select text. 3. Copy. 4. Optionally, paste text somewhere to examine it. Actual Results: "*******" is copied to the pasteboard. Expected Results: Copy should be unavailable, since it performs no useful function. This might be filed under the wrong component, as it may be considered a menu issue, not a forms issue.
I believe this is a duplicate of bug 217729 over in core.
I think we might be able to fix this in Camino; I think we have some way of knowing what type of field we're in. 50/50 on which component, but there are other validation bugs in Menus, so -->
Component: HTML Form Controls → Toolbars & Menus
QA Contact: form.controls → toolbars
Confirming. If it turns out this has to go to Core, we can do that later, but let's see if we can fix it on our end (especially as it seems the Core bug has no hope of being fixed soon).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch fix — — Splinter Review
Assignee: nobody → stuart.morgan
Status: NEW → ASSIGNED
Attachment #289174 - Flags: review?(froodian)
Attachment #289174 - Flags: review?(froodian) → review?(Jeff.Dlouhy)
Attachment #289174 - Flags: review?(Jeff.Dlouhy) → superreview?(mark)
Comment on attachment 289174 [details] [diff] [review] fix >Index: src/embedding/CHBrowserView.mm >+// -isPasswordFieldFocused >+// >+// Returs YES if a password field in the content area has focus. >+// Add a note here that we have to do this check ourselves because core doesn't, and that if bug 217729 is ever fixed, we'll possibly be able to get rid of this rely on core doing the right thing. Maybe also file (or get someone else to file) a bug dependent on 217729 to take this out. >+ nsAutoString type; >+ input->GetType(type); >+ if (type == NS_LITERAL_STRING("password")) I'd prefer |if (type.Equals(NS_LITERAL_STRING("password")))|.
Attachment #289174 - Flags: superreview?(mark) → superreview+
Landed on trunk and MOZILLA_1_8_BRANCH with the above changes.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1.12
Resolution: --- → FIXED
Target Milestone: --- → Camino1.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: