Closed
Bug 566188
Opened 14 years ago
Closed 14 years ago
MSAA nsAccessibleWrap::GetXPAccessibleFor should return nsAccessible*
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: surkov, Assigned: surkov)
References
(Blocks 2 open bugs)
Details
(Keywords: access)
Attachments
(1 file)
(deleted),
patch
|
davidb
:
review+
MarcoZ
:
feedback+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #445592 -
Flags: review?(bolterbugz)
Assignee | ||
Updated•14 years ago
|
Attachment #445592 -
Flags: feedback?(marco.zehe)
Assignee | ||
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Comment on attachment 445592 [details] [diff] [review]
patch
This try-server build works with JAWS, Window-Eyes and NVDA just fine.
Attachment #445592 -
Flags: feedback?(marco.zehe) → feedback+
Comment 4•14 years ago
|
||
Comment on attachment 445592 [details] [diff] [review]
patch
>+
>+ nsCOMPtr<nsIAccessible> xpAccessibleResult;
Should that remain an nsIAccessible or should that be converted to an nsAccessible as well here?
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #4)
> (From update of attachment 445592 [details] [diff] [review])
> >+
> >+ nsCOMPtr<nsIAccessible> xpAccessibleResult;
>
> Should that remain an nsIAccessible or should that be converted to an
> nsAccessible as well here?
We can do nothing with this now because it's used to store result from interface methods which deals with nsIAccessible. Probably we don't need anything, since the result will be queried to IAccessible any way since nsAccessible world doesn't know about nsAccessibleWrap.
Comment 6•14 years ago
|
||
Comment on attachment 445592 [details] [diff] [review]
patch
>@@ -272,53 +265,50 @@ STDMETHODIMP nsDocAccessibleWrap::get_ac
> struct nsSearchAccessibleInCacheArg
> {
>- nsRefPtr<nsAccessNode> mAccessNode;
>+ nsRefPtr<nsAccessible> mAccessible;
> void *mUniqueID;
> };
>
> static PLDHashOperator
> SearchAccessibleInCache(const void* aKey, nsDocAccessible* aDocAccessible,
> void* aUserArg)
> {
> NS_ASSERTION(aDocAccessible,
> "No doc accessible for the object in doc accessible cache!");
>
> if (aDocAccessible) {
> nsSearchAccessibleInCacheArg* arg =
> static_cast<nsSearchAccessibleInCacheArg*>(aUserArg);
> nsAccessNode* accessNode =
> aDocAccessible->GetCachedAccessNode(arg->mUniqueID);
> if (accessNode) {
>- arg->mAccessNode = accessNode;
>+ arg->mAccessible = do_QueryObject(accessNode);
Why the change from node to accessible? Doesn't it just add a do_QueryObject call?
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #6)
> Why the change from node to accessible? Doesn't it just add a do_QueryObject
> call?
It adds it here and then removes it there :) Since we expect nsAccessible from this method then I enclosed the query into it.
Comment 8•14 years ago
|
||
Comment on attachment 445592 [details] [diff] [review]
patch
fair enough, r=me thanks.
Attachment #445592 -
Flags: review?(bolterbugz) → review+
Assignee | ||
Comment 9•14 years ago
|
||
landed on 1.9.3 - http://hg.mozilla.org/mozilla-central/rev/e9ea5ee4f010
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•