Bug 81168 - Remove placeholder names for accessible objects
Summary: Remove placeholder names for accessible objects
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.5.2 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: accessibility, needsUXEval
Depends on:
Blocks: a11y, Accessibility
  Show dependency treegraph
 
Reported: 2014-07-10 12:10 UTC by Jacobo Aragunde Pérez
Modified: 2019-10-17 12:33 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments
Accessible event listener, listens to "focused" events and outputs name (314 bytes, text/plain)
2014-07-10 12:10 UTC, Jacobo Aragunde Pérez
Details
Issue exposed in Accerciser (93.97 KB, image/png)
2014-07-11 10:33 UTC, Jacobo Aragunde Pérez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacobo Aragunde Pérez 2014-07-10 12:10:24 UTC
Created attachment 102531 [details]
Accessible event listener, listens to "focused" events and outputs name

Placeholder names like "Frame1" for accessible objects are not useful, and imply additional work for people implementing client applications like screen readers, which should deliberately ignore them to avoid flooding the user with undesired information.

An example of this issue are floating text frames, but probably there are more. To reproduce it:

* Run the attached event listener
* Create a Writer document, insert -> frame, accept
* The frame should be focused, otherwise click on it to focus
* The event listener will output: "object name: Frame1"
Comment 1 Christophe Strobbe 2014-07-11 10:17:02 UTC
Hmm, are we expected to download and run an executable that we know nothing about? Is this program also available elsewhere? Which OS does it run on? Are there any alternative ways or tools to check this issue? 

And what is the effect of not having any names? Do AT (as opposed to accessible event listeners) still report the presence of the frame or do they use the absence of a name as an unwritten convention for objects that don't need to be reported (like empty alt attributes on images in HTML4.x and XHTML 1.x)? 

Anyway, the current behaviour is that LibreOffice always fills in the frame's name (attribute draw:name); when you delete the name and save the file, then reopen the frame options, you will find that LibreOffice has filled in a name. 

Is there a better way of dealing with this issue than removing the placeholder names? I am thinking specifically of prompting the user to provide a meaningful name when inserting a frame. This would also be useful for many other types of objects.
Comment 2 Jacobo Aragunde Pérez 2014-07-11 10:33:02 UTC
(In reply to comment #1)
> Hmm, are we expected to download and run an executable that we know nothing
> about? Is this program also available elsewhere? Which OS does it run on?
> Are there any alternative ways or tools to check this issue? 
> 

The program is a Python script, it's plain text and you can read the code to check it's not doing nasty things :) It uses pyatspi library so it's supposed to work only in Linux machines.

You can also check this using any software that allows browsing the objects exposed by the accessibility API, like Accerciser. I'm attaching a screenshot.
Comment 3 Jacobo Aragunde Pérez 2014-07-11 10:33:31 UTC
Created attachment 102613 [details]
Issue exposed in Accerciser
Comment 4 Jacobo Aragunde Pérez 2014-07-11 10:47:53 UTC
(In reply to comment #1)
> And what is the effect of not having any names? Do AT (as opposed to
> accessible event listeners) still report the presence of the frame or do
> they use the absence of a name as an unwritten convention for objects that
> don't need to be reported (like empty alt attributes on images in HTML4.x
> and XHTML 1.x)? 
> 

I've checked what Orca does, it says "Frame1 text frame activated" when I focus it, as you can see the role already tells us we are dealing with a text frame. I don't think it ignores objects with empty names, as a matter of fact most objects like paragraphs don't have it.

> Anyway, the current behaviour is that LibreOffice always fills in the
> frame's name (attribute draw:name); when you delete the name and save the
> file, then reopen the frame options, you will find that LibreOffice has
> filled in a name. 
> 

That's right. As additional info, at right click -> description you can enter a title that will be used as the accessible name of the object, ignoring the name found at right click -> frame -> options.

> Is there a better way of dealing with this issue than removing the
> placeholder names? I am thinking specifically of prompting the user to
> provide a meaningful name when inserting a frame. This would also be useful
> for many other types of objects.

The description dialog would be a great candidate for this but I fear that prompting the user for a title every time a frame is inserted would be too intrusive.
Comment 5 Robinson Tryon (qubit) 2015-01-23 19:29:08 UTC
(In reply to Christophe Strobbe from comment #1)
> Anyway, the current behaviour is that LibreOffice always fills in the
> frame's name (attribute draw:name); when you delete the name and save the
> file, then reopen the frame options, you will find that LibreOffice has
> filled in a name. 
> 
> Is there a better way of dealing with this issue than removing the
> placeholder names? I am thinking specifically of prompting the user to
> provide a meaningful name when inserting a frame. This would also be useful
> for many other types of objects.

Sounds like a UI/UX discussion about best way to improve a11y, so

Status -> NEW
Component -> ux-advise
Severity -> enhancement
Comment 6 Niklas Johansson 2015-02-06 13:36:16 UTC
(In reply to Jacobo Aragunde Pérez from comment #4)

> ... As additional info, at right click -> description you can
> enter a title that will be used as the accessible name of the object,
> ignoring the name found at right click -> frame -> options.

How about changing the behavior so it never falls back to presenting the name of object, but only use the information in title and description?

If I'm not mistaken frames needs a unique name. Also that name is among other things useful for features of the navigator.
Comment 7 Robinson Tryon (qubit) 2015-12-10 03:37:38 UTC Comment hidden (obsolete)
Comment 8 Alex ARNAUD 2016-04-20 15:46:13 UTC
It should be so interesting to have a real title about the content of the frame for deciding if we want to see the content or not.
Comment 9 Robinson Tryon (qubit) 2016-08-25 05:49:13 UTC Comment hidden (obsolete)
Comment 10 V Stuart Foote 2016-09-16 12:25:52 UTC
an issue for all AT tools, adjusting the blocks meta
Comment 11 Yousuf Philips (jay) (retired) 2016-09-16 16:45:32 UTC
> * Run the attached event listener
> * Create a Writer document, insert -> frame, accept
> * The frame should be focused, otherwise click on it to focus
> * The event listener will output: "object name: Frame1"

It isnt a placeholder name as a user can change this automatically generated name/id with a different one in the options tab of the frame dialog, so i dont see a problem here. But even if a placeholder name was assigned to an object, it is used as a means of differentiating multiple objects of the same kind, and this primarily benefits a11y but also navigator users.
Comment 12 Heiko Tietze 2019-10-17 12:33:16 UTC
Following comment 11 we should resolve the request as WF.