Closed Bug 408460 Opened 17 years ago Closed 17 years ago

Accessibility: Labels not read for header fields in Message Viewer

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3

People

(Reporter: MarcoZ, Assigned: MarcoZ)

References

Details

(Keywords: access)

Attachments

(1 file, 4 obsolete files)

In the Message Viewer (after opening a message using ENTER), the fields "From", "Date" etc. do not have associated labels.
This patch is just an idea on how I'd go about creating the relationship between the label and textbox elements. This patch does not work yet, primarily because I am not sure:
1. How to create a unique ID.
2. If the properties I'm using are the right ones in the constructor.

Does anybody have any input to share? This would be greatly appreciated!
Attached patch Alternative patch, only using inheritance (obsolete) (deleted) — Splinter Review
As discussed with Neil on IRC, an alternative is to just use inheritance. However this does also not work. Neil, is this what it should look like in theory?
Attached patch First patch that should work (obsolete) (deleted) — Splinter Review
This patch adds the accId attribute to the two mail widgets that are exposed as accessibles. This accId is translated into the id attribute for the relevant label anonymous element. It is also used for the aria-labelledby attribute for the xul:textbox. However the association does not work right yet. The accessible for the label is created, but it is not linked to the textbox. Aaron, can you see why?
Attachment #293642 - Attachment is obsolete: true
Attachment #293651 - Attachment is obsolete: true
Attachment #293669 - Flags: review?(aaronleventhal)
Status: NEW → ASSIGNED
Assignee: nobody → marco.zehe
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Attachment #293669 - Attachment is obsolete: true
Attachment #293669 - Flags: review?(aaronleventhal)
Attached patch WIP (obsolete) (deleted) — Splinter Review
This patch adds ids to both the label and the textbox. Both are accessibles (the label is not without the id attribute). Yet they don't want to connect to one another. Neither using control on the label, nor using aria-labelledby on the textbox will make them connect to one another.

Aaron, any ideas on this?
The author shouldn't have to set these unique ID's -- the label association should just work.

The anonymous <textbox> already has an anonid="headerValue". All you should have to do is put control="headerValue" on the label element.
Attached patch patch (deleted) — Splinter Review
This patch adds a label/textbox relationship to the mail widgets that are used for Subject, date etc. It also adds a couple control attributes for other labels inside the mail viewing window.

Thanks, Neil and Aaron, for all your help! In the end, it turned out to be rather simple...
Attachment #293693 - Attachment is obsolete: true
Attachment #293699 - Flags: superreview?
Attachment #293699 - Flags: review?
Attachment #293699 - Flags: superreview?(neil)
Attachment #293699 - Flags: superreview?
Attachment #293699 - Flags: review?(neil)
Attachment #293699 - Flags: review?
Attachment #293699 - Flags: superreview?(neil)
Attachment #293699 - Flags: superreview+
Attachment #293699 - Flags: review?(neil)
Attachment #293699 - Flags: review+
Requesting checkin of patch. Thanks!
Keywords: checkin-needed
Checking in mailnews/base/resources/content/mailWidgets.xml;
/cvsroot/mozilla/mailnews/base/resources/content/mailWidgets.xml,v  <--  mailWidgets.xml
new revision: 1.125; previous revision: 1.124
done
Checking in mailnews/base/resources/content/msgHdrViewOverlay.xul;
/cvsroot/mozilla/mailnews/base/resources/content/msgHdrViewOverlay.xul,v  <--  msgHdrViewOverlay.xul
new revision: 1.73; previous revision: 1.72
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: