Closed Bug 362074 Opened 19 years ago Closed 19 years ago

ns*TextFieldAccessible::CheckForEditor should use nsIDOMNSEditableElement

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: asaf, Assigned: asaf)

Details

Attachments

(1 file)

nsXULTextFieldAccessible::CheckForEditor and nsHTMLTextFieldAccessible::CheckForEditor go through nsITextControlFrame for achieving the element's editor. They could simply use nsIDOMNSEditableElement.
Assignee: aaronleventhal → mano
Status: NEW → ASSIGNED
Attached patch patchSplinter Review
Attachment #246801 - Flags: review?(aaronleventhal)
Comment on attachment 246801 [details] [diff] [review] patch + nsresult rv = editableElt->GetEditor(getter_AddRefs(editor)); + if (NS_SUCCEEDED(rv)) { + I recommend getting rid of |rv| and using if (editor) { SetEditor(editor); }
Attachment #246801 - Flags: review?(aaronleventhal) → review+
I don't think that would be right, SetEditor takes care of that case.
Fair enough.
mozilla/accessible/src/html/nsHTMLFormControlAccessible.cpp 1.76 mozilla/accessible/src/xul/nsXULFormControlAccessible.cpp 1.66
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [19a1]
Whiteboard: [19a1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: