Closed
Bug 248017
Opened 21 years ago
Closed 21 years ago
Cannot get to ISimpleDOM* interfaces on Windows XP
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
Details
(Keywords: access)
Attachments
(1 file)
|
1.27 KB,
patch
|
pkwarren
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
On Windows XP, QueryInterface is not allowed from IAccessible to a custom
interface. The docs on MSDN even say that IServiceProvider::QueryService() must
be used, but don't say why.
Unfortunately we don't currently make it possible to use all of the ISimpleDOM*
interfaces from QueryService.
| Assignee | ||
Comment 1•21 years ago
|
||
I tested this using the code written up in the comments.
| Assignee | ||
Updated•21 years ago
|
Attachment #151404 -
Flags: review?(pkwarren)
Updated•21 years ago
|
Attachment #151404 -
Flags: review?(pkwarren) → review+
| Assignee | ||
Updated•21 years ago
|
Attachment #151404 -
Flags: superreview?(darin)
Comment 2•21 years ago
|
||
Comment on attachment 151404 [details] [diff] [review]
Support any of our interfaces via QueryInterface or IServiceProvider::QueryService.() We ignore the refguid argument.
>Index: accessible/src/msaa/nsAccessibleWrap.cpp
> nsAccessibleWrap::QueryService(REFGUID guidService, REFIID iid, void** ppv)
...
>+ *ppv = NULL;
>+ return QueryInterface(iid, ppv);
> }
The first thing QueryInterface seems to do is set *ppv to NULL, so perhaps
it is redundant here to also set *ppv to NULL. Or, are you worried that
someone might subclass nsAccessibleWrap and reimplement QueryInterface such
that it doesn't set *ppv to NULL up front?
sr=darin either way
Attachment #151404 -
Flags: superreview?(darin) → superreview+
| Assignee | ||
Comment 3•21 years ago
|
||
/cvsroot/mozilla/accessible/src/msaa/nsAccessibleWrap.cpp,v <--
nsAccessibleWrap.cpp
new revision: 1.11; previous revision: 1.10
done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•