This may be related to the discussion in the last meeting about when QI let's 
you go from IAccessible to some other custom interface, ISimpleDOMDocument in 
his case. 


--Andres.
 

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On 
Behalf Of [email protected]
Sent: Thursday, March 05, 2009 3:26 PM
To: [email protected]
Subject: Querying ISimpleDOMDocument on MozillaWindowClass returns 0x80004002 
with FF 3.0.7 (works fine with 3.0.6 & 3.1B2 !)

Hi all,

This little peace of  code works fine with Firefox 3.0.6 and Firefox
3.1B2, but does not with Firefox 3.0.7!

My aim is to get the current document URL, and w is the handle to the
"MozillaWindowClass" class Window :

hr=AccessibleObjectFromWindow(tSuivi.w,(DWORD)
OBJID_CLIENT,IID_IAccessible,(void**)&pAccessible);
if (FAILED(hr)) ...
varStart.vt=VT_I4;
varStart.lVal=CHILDID_SELF;
hr=pAccessible->accNavigate(0x1009,varStart,&varResult); // 0x1009 =
NAVRELATION_EMBEDS
if (FAILED(hr)) ...
if (varResult.vt!=VT_DISPATCH) ...
pIDispatch=(IDispatch *)varResult.lVal;
if (pIDispatch==NULL) ...
hr =pIDispatch->QueryInterface(IID_ISimpleDOMDocument, (void**)
&pSimpleDOMDocument);
if (FAILED(hr)) ...
hr = pSimpleDOMDocument->get_URL(&bstrURL);
if (FAILED(hr)) ...

The "pIDispatch->QueryInterface(IID_ISimpleDOMDocument, (void**)
&pSimpleDOMDocument);" statement returns 0x80004002. So I cannot get
my URL...

Any clue?

Thanks!

- Sylvain

Aaron, if you're reading this, I would be very pleased if you could
help :-).
_______________________________________________
dev-accessibility mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-accessibility
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/accessibility-ia2

Reply via email to