[Libreoffice-bugs] [Bug 124400] New: Add stable widget IDs to ATK interface

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Mar 28 16:03:15 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124400

            Bug ID: 124400
           Summary: Add stable widget IDs to ATK interface
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: samuel.thibault at ens-lyon.org

Hello,

Just like mentioned in https://gitlab.gnome.org/GNOME/atk/issues/4 and
https://gitlab.gnome.org/GNOME/gtk/issues/1287 , libreoffice currently does not
provide any stable id that could be used for identifying widgets in a stable
manner. We would need this for proper regression testing, so we can check that
for instance a well-known shortcut properly switches focus to a well-known
widget, independently from the locale, from modifications of the label of the
widget, and from modifications in the tree that leads to this widget. Screen
reader scripts could also use it to be able to reach a widget which is known to
provide some information. 

The way firefox exposes it is through an "id" attribute for the object, and
that is also being implemented for gtk. We will need some implementation on the
libreoffice side as well.

The "id" as found in the .ui files would be exactly what we need. AFAICT from
the source code, it ends up in the maID field of vcl::Window, which can be
obtained with the get_id() method. It seems it could be exposed in
XAccessibleContext through a getId() method, that
accessibility/source/extended/accessible* would implement.
vcl/unx/gtk/a11y/atkwrapper.cxx's wrapper_get_attributes function would then be
able to call it and append it to the attribute list before returning it to atk.

Does this sound like a plan?

Samuel

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190328/c5e71512/attachment-0001.html>


More information about the Libreoffice-bugs mailing list