bug 458871 - QueryService always returns an object while it should check service ID, r=aaronlev, a1.9.0.7=dveditz
git-svn-id: svn://10.0.0.236/trunk@256015 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6e21bbfdbd
commit
c1fcf08871
@ -134,6 +134,13 @@ STDMETHODIMP nsAccessNodeWrap::QueryInterface(REFIID iid, void** ppv)
|
||||
STDMETHODIMP
|
||||
nsAccessNodeWrap::QueryService(REFGUID guidService, REFIID iid, void** ppv)
|
||||
{
|
||||
static const GUID IID_SimpleDOMDeprecated = {0x0c539790,0x12e4,0x11cf,0xb6,0x61,0x00,0xaa,0x00,0x4c,0xd6,0xd8};
|
||||
if (guidService != IID_ISimpleDOMNode &&
|
||||
guidService != IID_SimpleDOMDeprecated &&
|
||||
guidService != IID_IAccessible && guidService != IID_IAccessible2 &&
|
||||
guidService != IID_IAccessibleApplication)
|
||||
return E_INVALIDARG;
|
||||
|
||||
// Can get to IAccessibleApplication from any node via QS
|
||||
if (iid == IID_IAccessibleApplication) {
|
||||
nsRefPtr<nsApplicationAccessibleWrap> app =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user