The input type=color element should report the selected color instead of just "button"
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: saschanaz, Assigned: Jamie)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
https://bugzilla.mozilla.org/show_bug.cgi?id=2009748#c2
Focusing on the input type=color button only reports it as a "button" and says nothing else on NVDA on Firefox, while on Chrome it reports "0% red, 0% green, 0% blue". Given we show the selected color in the button, we should probably do the same? Is there any standard phrase in HTML about this? Should there be?
Not sure that's very well defined. But to implement that we might need a new LocalAccessible subclass... Might be worth checking if this was better before bug 1873301. nsColorControlFrame could implement AccessibleType() and so on.
2025-07-01 build has the same problem, so probably not a regression.
| Assignee | ||
Comment 1•10 months ago
|
||
This isn't a regression, nor is it related to the new colour picker, so it doesn't block that.
In bug 1694789, a patch was landed which does expose a value for <input type="color"> via LocalAccessible. You can see this in the DevTools accessibility panel. However, this wasn't wired up to the RemoteAccessible cache, so accessibility clients (which query the parent process) can't access it. The remaining work is to push this into the cross-process cache and then expose it via RemoteAccessible.
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Comment 2•10 months ago
|
||
Ug. We also need to fire value change events for colour changes and there isn't currently a mechanism in DOM or layout to do that.
| Assignee | ||
Comment 3•10 months ago
|
||
There's one further problem here, which is that NVDA doesn't report the value of buttons in browse mode, though it does in focus mode. We could use IA2_ROLE_COLOR_CHOOSER like Chromium does, but it's unclear whether that's correct, since the spec says that role is for a dialog, not the control to open the dialog:
A specialized dialog that lets the user choose a color.
Even with that role, NVDA's behaviour isn't fully correct. It reports the value, which is great, but it doesn't report the role or label.
I think it's best to deal with that in a separate bug.
| Assignee | ||
Comment 4•10 months ago
|
||
Comment 7•10 months ago
|
||
Backed out for causing build bustages
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/accessible/generic/LocalAccessible.cpp:X:35: error: incomplete type 'mozilla::dom::HTMLInputElement' named in nested name specifier
| Assignee | ||
Updated•10 months ago
|
Comment 9•10 months ago
|
||
| bugherder | ||
Comment 10•10 months ago
|
||
Comment 11•10 months ago
|
||
Backed out for causing high frequency failures at nsCOMPtr.h.
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/0dbe87950716d03ee835094a71f8f2a7d6eb6acd
Failure log: https://treeherder.mozilla.org/logviewer?job_id=544111524&repo=autoland&task=LFje_BwCQjiGyP4XBQi9sQ.0&lineNumber=3853
Comment 12•10 months ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/0dbe87950716d03ee835094a71f8f2a7d6eb6acd
| Assignee | ||
Comment 13•10 months ago
|
||
Is this the correct failure log? I don't see nsCOMPtr.h anywhere in the log file.
Comment 15•10 months ago
|
||
Comment 16•10 months ago
|
||
| bugherder | ||
Description
•