Closed Bug 2009757 Opened 10 months ago Closed 10 months ago

The input type=color element should report the selected color instead of just "button"

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED FIXED
149 Branch
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.

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.

Blocks: 559767
Severity: -- → S2
Component: DOM: Forms → Disability Access APIs
Depends on: 1694789
Assignee: nobody → jteh
Status: NEW → ASSIGNED

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.

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.

See Also: → 2009895
Pushed by jteh@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7a935e6becc3 https://hg.mozilla.org/integration/autoland/rev/de0a5f9decb5 Include the value of color inputs in the RemoteAccessible cache. Fire the correct event when the value changes. r=eeejay,layout-reviewers,emilio
Pushed by ctuns@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/721eb271542b https://hg.mozilla.org/integration/autoland/rev/48424d82d309 Revert "Bug 2009757: Include the value of color inputs in the RemoteAccessible cache. Fire the correct event when the value changes. r=eeejay,layout-reviewers,emilio" for causing build bustages in LocalAccessible.cpp

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
Flags: needinfo?(jteh)
Flags: needinfo?(jteh)
Pushed by jteh@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/448794d7f513 https://hg.mozilla.org/integration/autoland/rev/80dbb58d0285 Include the value of color inputs in the RemoteAccessible cache. Fire the correct event when the value changes. r=eeejay,layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/28cf7eb0dbd6 https://hg.mozilla.org/integration/autoland/rev/0dbe87950716 Revert "Bug 2009757: Include the value of color inputs in the RemoteAccessible cache. Fire the correct event when the value changes. r=eeejay,layout-reviewers,emilio" for causing high frequency failures at nsCOMPtr.h.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 149 Branch → ---

Is this the correct failure log? I don't see nsCOMPtr.h anywhere in the log file.

Flags: needinfo?(jteh) → needinfo?(abutkovits)

Here is a log with nsCOMPtr.h

Flags: needinfo?(abutkovits)
Pushed by jteh@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7e8825ab9798 https://hg.mozilla.org/integration/autoland/rev/24c640c40d44 Include the value of color inputs in the RemoteAccessible cache. Fire the correct event when the value changes. r=eeejay,layout-reviewers,emilio
Status: REOPENED → RESOLVED
Closed: 10 months ago → 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: