Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311303 - IAccessible2::role is supposed to pass the MSAA role through
Summary: IAccessible2::role is supposed to pass the MSAA role through
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.6 RC1   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 00:36 EDT by Carolyn MacLeod CLA
Modified: 2010-05-03 22:46 EDT (History)
1 user (show)

See Also:
Silenio_Quarti: review+


Attachments
return MSAA (default) role for IA2::get_role if no role set (2.34 KB, patch)
2010-05-02 00:36 EDT, Carolyn MacLeod CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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