Closed
Bug 820761
Opened 12 years ago
Closed 7 years ago
IAccessible2 interface failed in Mozilla version 18(beta), why?
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: rajeshcode, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.56 Safari/537.4 Steps to reproduce: I'm using "IAccessible2" interface to find something with Mozilla browser. Its working fine with Mozilla version less than equal to 17.**, but it fails in Mozilla version 18 (beta). Anyone please tell me that why this issue is happening? Actual results: IAccessible2 failed in Mozilla version 18 (beta).
Updated•12 years ago
|
Component: Untriaged → Disability Access APIs
Product: Firefox → Core
Comment 1•12 years ago
|
||
I cannot confirm. NVDA, which uses IAccessible2 heavily, is working as it should in Beta 18. Please provide more information or a code sample.
(In reply to Marco Zehe (:MarcoZ) from comment #1) > I cannot confirm. NVDA, which uses IAccessible2 heavily, is working as it > should in Beta 18. Please provide more information or a code sample. Hi Marco Zehe, Some code sample are: IAccessible2 *pIAcc2 = NULL; IServiceProvider *pService = NULL; hr = pService->QueryService(IID_IAccessible, IID_IAccessible2, (void**)&pIAcc2); if((SUCCEEDED(hr)) && (pIAcc2)) { // success } else { // failed (always shows this line of code) } Thanks, R-VR
Flags: needinfo?(rajeshcode)
Comment 3•12 years ago
|
||
Without actually debugging the only thing I can imagine could wrong in that test is we end up calling the wrong (xpcom QueryInterface() instead of the one for mscom.
(In reply to Trevor Saunders (:tbsaunde) from comment #3) > Without actually debugging the only thing I can imagine could wrong in that > test is we end up calling the wrong (xpcom QueryInterface() instead of the > one for mscom. Hi Trevor Saunders, I'm using MSCom QueryInterface() not xpcom QueryInterface(). And more sample codes are: IAccessible2 *pIAcc2 = NULL; IAccessible *pIAccParentTab = NULL; IServiceProvider *pService = NULL; // Finding Accessible for parent object (pIAccParentTab). hr = pIAccParentTab->QueryInterface(IID_IServiceProvider, (void **)&pService); if(SUCCEEDED(hr) && (pService)) { hr = pService->QueryService(IID_IAccessible, IID_IAccessible2, (void**)&pIAcc2); if((SUCCEEDED(hr)) && (pIAcc2)) { // success } else { // failed (always shows this line of code) } } Please help. Thanks, R-VR
(In reply to rajeshcode from comment #4) > (In reply to Trevor Saunders (:tbsaunde) from comment #3) > > Without actually debugging the only thing I can imagine could wrong in that > > test is we end up calling the wrong (xpcom QueryInterface() instead of the > > one for mscom. > > Hi Trevor Saunders, > > I'm using MSCom QueryInterface() not xpcom QueryInterface(). And more sample > codes are: > > IAccessible2 *pIAcc2 = NULL; > IAccessible *pIAccParentTab = NULL; > IServiceProvider *pService = NULL; > > // Finding Accessible for parent object (pIAccParentTab). > > hr = pIAccParentTab->QueryInterface(IID_IServiceProvider, (void > **)&pService); > if(SUCCEEDED(hr) && (pService)) > { > hr = pService->QueryService(IID_IAccessible, IID_IAccessible2, > (void**)&pIAcc2); > if((SUCCEEDED(hr)) && (pIAcc2)) > { > // success > } > else > { > // failed (always shows this line of code) > } > } > The above code successfully working for Mozilla version less than 18.0(beta). > Please help. > > Thanks, > R-VR
Comment 6•12 years ago
|
||
(In reply to rajeshcode from comment #4) > (In reply to Trevor Saunders (:tbsaunde) from comment #3) > > Without actually debugging the only thing I can imagine could wrong in that > > test is we end up calling the wrong (xpcom QueryInterface() instead of the > > one for mscom. > > Hi Trevor Saunders, > > I'm using MSCom QueryInterface() not xpcom QueryInterface(). And more sample > codes are: I believe Trevor meant our internal implementation. Do you have sources of some demo app I can build on my machine and use for debugging?
Comment 7•7 years ago
|
||
rajeshcode has not replied to comment 6
Flags: needinfo?(rajeshcode)
Whiteboard: [closeme 2017-09-15]
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(rajeshcode)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2017-09-15]
You need to log in
before you can comment on or make changes to this bug.
Description
•