Bug 75151 - [Win Accessibility] AccDescription has disappeared from most controls
Summary: [Win Accessibility] AccDescription has disappeared from most controls
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
4.3.0.0.alpha0+ Master
Hardware: Other Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-18 10:56 UTC by Marco Zehe
Modified: 2014-02-19 11:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Zehe 2014-02-18 10:56:12 UTC
In current Master builds, the Acc_description has disappeared from most standard controls such as Buttons, Checkboxes, Radio Buttons etc.

To compare:

1. Open LibreOffice 4.2.0. Focus lands on the Open File button.
Using NVDA, I press Insert+F1 and get this information:

Developer info for navigator object:
name: u'Open File'
role: ROLE_BUTTON
states: STATE_FOCUSABLE, STATE_FOCUSED
isFocusable: True
hasFocus: True
Python object: <NVDAObjects.Dynamic_SymphonyTextButtonIAccessible object at 0x05613B90>
Python class mro: (<class 'NVDAObjects.Dynamic_SymphonyTextButtonIAccessible'>, <class 'appModules.soffice.SymphonyText'>, <class 'NVDAObjects.IAccessible.Button'>, <class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.behaviors.EditableText'>, <class 'editableText.EditableText'>, <class 'NVDAObjects.NVDAObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <type 'object'>)
description: u'The Open a Document icon presents a file open dialog.'
location: (129, 193, 335, 59)
value: None
appModule: <'soffice' (appName u'soffice', process ID 3972) at address 5a0ed50>
appModule.productName: u'LibreOffice'
appModule.productVersion: u'4.2.0.4'
TextInfo: <class 'appModules.soffice.SymphonyTextInfo'>
windowHandle: 525122L
windowClassName: u'SALFRAME'
windowControlID: 0
windowStyle: 349110272
windowThreadID: 3540
windowText: u'LibreOffice'
displayText: u''
IAccessibleObject: <POINTER(IAccessible2) ptr=0xc84e81c at 57cf4e0>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=525122, objectID=-4, childID=-66
IAccessible accName: u'Open File'
IAccessible accRole: ROLE_SYSTEM_PUSHBUTTON
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: u'The Open a Document icon presents a file open dialog.'
IAccessible accValue: None
IAccessible2 windowHandle: 525122
IAccessible2 uniqueID: -66
IAccessible2 role: ROLE_SYSTEM_PUSHBUTTON
IAccessible2 states:  (0)
IAccessible2 attributes: exception: (-2147467259, 'Unspecified error', (None, None, None, 0, None))

The important line is:
IAccessible accDescription: u'The Open a Document icon presents a file open dialog.'

2. Now, open a current LibreOffice 4.3.0 dev build, any build from recent couple of days will do. The info looks almost identical for the same button, except:

IAccessible accDescription: u''

3. Back in LibreOffice 4.2, open any Writer document, then go to File/Export as PDF. All of the controls have explanatory descriptions, for example the "Tagged PDF checkbox":
Developer info for navigator object:
name: u'Tagged PDF'
role: ROLE_CHECKBOX
states: STATE_CHECKED, STATE_FOCUSABLE, STATE_FOCUSED
isFocusable: True
hasFocus: True
Python object: <appModules.soffice.SymphonyText object at 0x057EBA50>
Python class mro: (<class 'appModules.soffice.SymphonyText'>, <class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.behaviors.EditableText'>, <class 'editableText.EditableText'>, <class 'NVDAObjects.NVDAObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <type 'object'>)
description: u'Selects to write PDF tags. This can increase file size by huge amounts.'
location: (851, 419, 350, 25)
value: None
appModule: <'soffice' (appName u'soffice', process ID 3972) at address 5a0ed50>
appModule.productName: u'LibreOffice'
appModule.productVersion: u'4.2.0.4'
TextInfo: <class 'appModules.soffice.SymphonyTextInfo'>
windowHandle: 853040L
windowClassName: u'SALSUBFRAME'
windowControlID: 0
windowStyle: -1798569984
windowThreadID: 3540
windowText: u'PDF Options'
displayText: u''
IAccessibleObject: <POINTER(IAccessible2) ptr=0xc849c6c at 57cf3f0>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=853040, objectID=-4, childID=-673
IAccessible accName: u'Tagged PDF'
IAccessible accRole: ROLE_SYSTEM_CHECKBUTTON
IAccessible accState: STATE_SYSTEM_CHECKED, STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048596)
IAccessible accDescription: u'Selects to write PDF tags. This can increase file size by huge amounts.'
IAccessible accValue: None
IAccessible2 windowHandle: 853040
IAccessible2 uniqueID: -673
IAccessible2 role: ROLE_SYSTEM_CHECKBUTTON
IAccessible2 states:  (0)
IAccessible2 attributes: exception: (-2147467259, 'Unspecified error', (None, None, None, 0, None))

4. Performing the same in the LibreOffice-dev 4.3 build, I again get:

IAccessible accDescription: u''

This feels like some more general breakage to me. Note that this does not affect all descriptions. For example tables and table cells in Writer documents still expose the correct accessible description.
Comment 1 V Stuart Foote 2014-02-18 14:55:14 UTC
As best I recall, the additional descriptions have never been present on the master branch builds -- rather are added in for Christian's (Cloph) TDF 'release' builds with the L10n translation tables.

Would it be desirable to have at least the untranslated descriptions present for TB builds of master?  

Christian, is that a compile flag that could be set for the other TBs?
Comment 2 V Stuart Foote 2014-02-19 03:22:20 UTC
setting resolved not a bug for now. But may add additional notes.
Comment 3 Caolán McNamara 2014-02-19 11:45:07 UTC
I imagine the issue here is that the dev-builds are --without-help and that's where the verbose descriptions are getting pulled from.