Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311303

Summary: IAccessible2::role is supposed to pass the MSAA role through
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: SWTAssignee: Carolyn MacLeod <carolynmacleod4>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 3.6Flags: Silenio_Quarti: review+
Target Milestone: 3.6 RC1   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
return MSAA (default) role for IA2::get_role if no role set none

Description Carolyn MacLeod CLA 2010-05-02 00:36:37 EDT
Created attachment 166727 [details]
return MSAA (default) role for IA2::get_role if no role set

Accessible.get_role was returning 0 when a role was not explicitly assigned by an application. This was causing JAWS to ask for the IAccessible2::role and then ask again for the IAccessible::accRole. This could potentially cause an AT to crash or loop needlessly, because 0 is not an expected return value. The fix is to return the MSAA role when the application does not return a role.
Comment 1 Carolyn MacLeod CLA 2010-05-03 22:46:26 EDT
Fixed > 20100503