Re: Firefox 56+ : IAccessible.accNavigate(NAVRELATION_EMBEDS) fails with 0x80004005 (E_FAIL)
[email protected] Tue, 28 Nov 2017 08:12:52 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.accessibility |
|---|---|
| Message-ID | <[email protected]> |
Hi Jamie,
Thanks for your answer. Unfortunately, this does not fix the problem, including when focusing the Firefox window before calling accNavigate().
Here is my source code:
// w is the main Firefox window handle ("MozillaWindowClass")
hr=AccessibleObjectFromWindow(w,(DWORD)OBJID_CLIENT,IID_IAccessible,(void**)&pAccessible);
if (FAILED(hr)) { TRACE((TRACE_ERROR,_F_,"AccessibleObjectFromWindow(IID_IAccessible)=0x%08lx",hr)); goto end; }
for (int i=0;i<50;i++) // test every second
{
hr=pAccessible->accNavigate(0x1009,vtMe,&vtResult); // NAVRELATION_EMBEDS = 0x1009
TRACE((TRACE_DEBUG,_F_,"accNavigate(NAVRELATION_EMBEDS)=0x%08lx",hr));
if (hr==S_OK) break;
Sleep(1000);
}
And the result is:
28/11-16:36:55:949 accNavigate(NAVRELATION_EMBEDS)=0x80004005
28/11-16:36:56:955 accNavigate(NAVRELATION_EMBEDS)=0x80004005
28/11-16:36:57:959 accNavigate(NAVRELATION_EMBEDS)=0x80004005
28/11-16:36:58:965 accNavigate(NAVRELATION_EMBEDS)=0x80004005
28/11-16:36:59:969 accNavigate(NAVRELATION_EMBEDS)=0x80004005
...
My testing environment is Windows 10 (10.0.15063) and Firefox 58.0b6 (64 bits).
Thanks!
Sylvain