Closed
Bug 1210982
Opened 9 years ago
Closed 1 year ago
JavaScript alert dialogs should be exposed as ROLE_DIALOG rather than ROLE_ALERT in ATK and IA2
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jdiggs, Unassigned)
References
(Blocks 1 open bug)
Details
JavaScript's alert() results in a dialog/message box/window appearing. Exposing this object as ROLE_ALERT -- the same role used for door hangers and elements with ARIA role alert -- makes it harder for ATs to distinguish these different type of objects. I would find it helpful if JavaScript alerts were exposed as ROLE_DIALOG. James Teh has said that he has no objection.
Comment 1•9 years ago
|
||
Gijs, you know who could add some ARIA magic into alert dialogs?
Comment 2•9 years ago
|
||
They are already role="dialog": https://dxr.mozilla.org/mozilla-central/source/toolkit/components/prompts/content/tabprompts.xml#26 If that's not how they're presented, then something wonky is happening, but it isn't the fault of the aria markup we use.
Flags: needinfo?(surkov.alexander)
Reporter | ||
Comment 3•9 years ago
|
||
I'm NEEDINFOing myself because from a quick test just now, I'm also seeing ROLE_DIALOG. But yesterday when looking at door hangers and other things, I had a simple javascript alert which was also showing up in the accessible tree as ROLE_ALERT. So it's either wonky and I need to find a reproducible test case, or I was hallucinating in which case I need to close this as INVALID. Since it's a travel day for me today, I don't have time to do either at the moment.
Flags: needinfo?(jdiggs)
Updated•9 years ago
|
Flags: needinfo?(surkov.alexander)
Updated•2 years ago
|
Severity: normal → S3
Comment 4•1 year ago
|
||
I haven't seen any instances of JavaScript alert() showing up with a role other than dialog, nor have there been any other reports of this. Closing. Please reopen if the problem persists/reappears.
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(jdiggs)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•