Closed Bug 561150 Opened 15 years ago Closed 15 years ago

GetAccessibleInWeakShell should return nsAccessible

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file)

Attached patch patchSplinter Review
No description provided.
Attachment #440822 - Flags: review?(bolterbugz)
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Comment on attachment 440822 [details] [diff] [review] patch >--- a/accessible/src/base/nsDocAccessible.cpp >+++ b/accessible/src/base/nsDocAccessible.cpp >@@ -2124,18 +2124,20 @@ nsDocAccessible::GetAccessibleInParentCh > break; > } > > nsCOMPtr<nsIDOMNode> relevantNode; > if (NS_SUCCEEDED(GetAccService()->GetRelevantContentNodeFor(currentNode, getter_AddRefs(relevantNode))) && relevantNode) { > currentNode = relevantNode; > } > if (aCanCreate) { >- GetAccService()->GetAccessibleInWeakShell(currentNode, mWeakShell, >- aAccessible); >+ nsRefPtr<nsAccessNode> acc = >+ GetAccService()->GetAccessibleInWeakShell(currentNode, mWeakShell); >+ if (acc) >+ CallQueryInterface(acc, aAccessible); I'm not sure why you create an nsAccessNode variable here?
(In reply to comment #1) > I'm not sure why you create an nsAccessNode variable here? misspelling, not difference however, will fix it
Comment on attachment 440822 [details] [diff] [review] patch r=me then :)
Attachment #440822 - Flags: review?(bolterbugz) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: