Closed
Bug 1406001
Opened 7 years ago
Closed 7 years ago
accNavigate fails with error code E_NOTIMPL
Categories
(Firefox :: Disability Access, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1405065
People
(Reporter: rajeshcode, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Steps to reproduce:
I am trying to find the URL from Mozilla window using VC++ project. For doing this, I used accNavigate() API with parameter "NAVRELATION_EMBEDS". But the API fails on Windows 7,8,8.1,10 machines (both 32 bit and 64 bit) with Mozilla Version- 56.0. Error code returned is- "ERROR_ALREADY_EXISTS", means- Cannot create a file when that file already exists". Sample code is given below:
// header files
#include "ISimpleDOMNode.h"
#include "ISimpleDOMText.h"
#include "ISimpleDOMDocument.h"
// GUIDs
const GUID refguid = {0x0c539790, 0x12e4, 0x11cf, 0xb6, 0x61, 0x00, 0xaa, 0x00, 0x4c, 0xd6, 0xd8};
const IID IID_ISimpleDOMNode= {0x1814ceeb,0x49e2,0x407f,0xaf,0x99,0xfa,0x75,0x5a,0x7d,0x26,0x07};
const IID IID_ISimpleDOMText= {0x4e747be5,0x2052,0x4265,0x8a,0xf0,0x8e,0xca,0xd7,0xaa,0xd1,0xc0};
const IID IID_ISimpleDOMDocument= {0x0D68D6D0,0xD93D,0x4d08,0xA3,0x0D,0xF0,0x0D,0xD1,0xF4,0x5B,0x24};
#ifndef NAVRELATION_EMBEDS
#define NAVRELATION_EMBEDS 0x1009
#endif
//////////////////////////////////////////
Void FindURLfromWindow(HWND hwnd)
{
DWORD dwError = 0;
try
{
if(hwnd)
{
IAccessible *pAccBrowser = NULL;
HRESULT hr = AccessibleObjectFromWindow(hwnd, OBJID_CLIENT, IID_IAccessible, (void**)&pAccBrowser);
if(SUCCEEDED(hr) && (pAccBrowser))
{
VARIANT vtStart;
VARIANT vtResult;
vtStart.vt = VT_I4;
vtStart.lVal = CHILDID_SELF;
/////////////////////////////
hr = pAccBrowser->accNavigate(NAVRELATION_EMBEDS,vtStart,&vtResult); //Failed in Windows 7,8,10 (both 32 bit and 64 bit)
dwError = GetLastError(); //Returns the error code 183 when accNavigate API fails
if(SUCCEEDED(hr))
{
IDispatch *pDisp = vtResult.pdispVal;
IAccessible *pAccDoc = NULL;
hr = pDisp->QueryInterface(IID_IAccessible,(void **)&pAccDoc);
if(SUCCEEDED(hr) && (pAccDoc))
{
hr = pAccDoc->QueryInterface(IID_IServiceProvider, (void **)&pServProv);
if(SUCCEEDED(hr) && (pServProv))
{
ISimpleDOMNode *pNode = NULL;
hr = pServProv->QueryService(refguid, IID_ISimpleDOMNode,(void **)&pNode);
if(SUCCEEDED(hr) && (pNode))
{
ISimpleDOMDocument *pDoc = NULL;
hr = pNode->QueryInterface(IID_ISimpleDOMDocument, (void **)&pDoc);
if(SUCCEEDED(hr) && (pDoc))
{
BSTR bstrUrl = NULL;
hr = pDoc->get_URL(&bstrUrl);
if(SUCCEEDED(hr) && (bstrUrl))
{
//success
}
}
}
}
}
}
}
}
}
catch(...)
{
}
}
Actual results:
accNavigate() with NAVRELATION_EMBEDS failed in Mozilla firefox version 56.0 on Windows 7,8,8.1,10 machines (both 32 bit and 64 bit).
Expected results:
accNavigate() API call success with NAVRELATION_EMBEDS to find the URL.
Severity: normal → critical
Component: Untriaged → Disability Access
OS: Unspecified → Windows
Hardware: Unspecified → x86_64
if we are browsing popups then those popup windows are getting success with accNavigate API for MOzilla Firefox 56.0, but normal Firefox windows are failing.
Summary: accNavigate fails with error code 183 (ERROR_ALREADY_EXISTS) → accNavigate fails with error code E_NOTIMPL
accNavigate returns error code "E_NOTIMPL", GetLastError returns error code "ERROR_ALREADY_EXISTS"
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Comment 4•7 years ago
|
||
Rajesh, please stop cc'ing anybody who has ever previously engaged with you, every time you file a new bug.
We receive a lot of bugmail, so every time you do this, you just end up spamming a bunch of people -- some of whom are not even involved with the project anymore.
I understand that you want somebody to pay attention to your bugs, so please file them under the "Core :: Disability Access APIs" component and let our triage process take it from there.
Continued spamming by you is going to earn your bugs *less* attention, not more.
ni? you to ensure that you see this.
Flags: needinfo?(rajeshcode)
(In reply to Aaron Klotz [:aklotz] (a11y work receiving priority right now, please send interceptor reviews to dmajor or handyman) from comment #4)
> Rajesh, please stop cc'ing anybody who has ever previously engaged with you,
> every time you file a new bug.
>
> We receive a lot of bugmail, so every time you do this, you just end up
> spamming a bunch of people -- some of whom are not even involved with the
> project anymore.
>
> I understand that you want somebody to pay attention to your bugs, so please
> file them under the "Core :: Disability Access APIs" component and let our
> triage process take it from there.
>
> Continued spamming by you is going to earn your bugs *less* attention, not
> more.
>
> ni? you to ensure that you see this.
Aaron, I apologies for the inconvenience caused; the bug is very critical for us:- completely affects our product's sale, that is why I included all the peoples from my contact list into this bug.
Next time, I will create the bug as per you suggestions.
Flags: needinfo?(rajeshcode)
You need to log in
before you can comment on or make changes to this bug.
Description
•