Closed Bug 351280 Opened 18 years ago Closed 18 years ago

nsAccessible::GetTextFromRelationID is broken on 1.8 branch

Categories

(Core :: Disability Access APIs, defect, P1)

1.8 Branch
x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
mozilla1.8.1

People

(Reporter: asaf, Assigned: asaf)

References

Details

(Keywords: access, fixed1.8.1, regression)

Attachments

(1 file)

See the following code from nsAccessible.cpp

  nsAutoString ids;
  if (!content->GetAttr(kNameSpaceID_WAIProperties, aIDAttrib, ids)) {
    return NS_ERROR_FAILURE;
  }

Testing this with the labelledby attribute,  we only get into this block if the attribute _is set_. I double checked and ids is actually set to the attribute value at this point.
Flags: blocking1.8.1?
Target Milestone: --- → mozilla1.8.1
Version: Trunk → 1.8 Branch
Blocks: 350615
Keywords: regression
*oy*.
Assignee: general → aaronleventhal
Component: DOM → Disability Access APIs
QA Contact: ian → accessibility-apis
Summary: nsIContent::GetAttr returning false when the attribute is set (and vice-versa) in 1.8.1? → nsAccessible::GetTextFromRelationID is broken on 1.8 branch
Attached patch patchSplinter Review
Assignee: aaronleventhal → bugs.mano
Status: NEW → ASSIGNED
Attachment #236690 - Flags: superreview?(neil)
Attachment #236690 - Flags: review?(aaronleventhal)
Priority: -- → P1
Comment on attachment 236690 [details] [diff] [review]
patch

I noticed that the rest of the file seems to prefer NS_CONTENT_ATTR_HAS_VALUE for some reason.
Attachment #236690 - Flags: superreview?(neil) → superreview+
Attachment #236690 - Flags: review?(aaronleventhal) → review+
Attachment #236690 - Flags: approval1.8.1?
Keywords: access
Whiteboard: Low risk
Attachment #236690 - Flags: approval1.8.1?
Attachment #236690 - Flags: approval1.8.1?
Comment on attachment 236690 [details] [diff] [review]
patch

a=darin on behalf of drivers for the MOZILLA_1_8_BRANCH.  please add the fixed1.8.1 keyword once this patch has landed.
Attachment #236690 - Flags: approval1.8.1? → approval1.8.1+
1.8 branch: mozilla/accessible/src/base/nsAccessible.cpp 1.165.2.12
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: Low risk
Flags: blocking1.8.1?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: