Closed Bug 2015485 Opened 5 months ago Closed 3 months ago

The "Ask" button from the toolbar does not have a Clicked State

Categories

(Core :: Machine Learning: Frontend, defect, P1)

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
151 Branch
Accessibility Severity s3
Tracking Status
firefox-esr140 --- disabled
firefox147 --- disabled
firefox148 --- disabled
firefox149 --- disabled
firefox150 --- verified
firefox151 --- verified

People

(Reporter: rdoghi, Assigned: jlewis, NeedInfo)

References

(Blocks 2 open bugs)

Details

(Keywords: access, Whiteboard: [aife][switcher][qa])

Attachments

(5 files, 1 obsolete file)

Attached video 2026-02-09_16h36_58.mp4

Found in

  • Nightly 149.0a1 (2026-02-09)

Affected versions

  • Nightly 149.0a1 (2026-02-09)

Affected platforms

  • All

Steps to reproduce

  1. Switch to a Smart window.
  2. Reach any website.
  3. Click and Hold the left mouse click on top of the ASK button from the Toolbar.

Expected result

  • The Ask button should also have a clicked state.

Actual result

  • There is no clicked state for the Ask button from the toolbar.

Regression range
N/A

Blocks: 1992301
Severity: -- → S3
Priority: -- → P1
Whiteboard: [genai][switcher]

It needs the checked toolbarbutton attribute.

Accessibility Severity: --- → s3
Whiteboard: [genai][switcher] → [genai][switcher][qa]
Assignee: nobody → jlewis
Attachment #9562219 - Attachment description: WIP: Bug 2015485 - The Ask button from the toolbar does not have a Clicked State → Bug 2015485 - The Ask button from the toolbar does not have a Clicked State r=#accessibility-frontend-reviewers
Status: NEW → ASSIGNED
Pushed by jlewis@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3b316e9a8761 https://hg.mozilla.org/integration/autoland/rev/380146f515f2 The Ask button from the toolbar does not have a Clicked State r=accessibility-frontend-reviewers,desktop-theme-reviewers,ai-frontend-reviewers,echa,morgan,dao
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.
:jlewis, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(jlewis)
Duplicate of this bug: 2015985

Verified as fixed in our latest Nightly 151.0a1 (2026-04-15)

QA Whiteboard: [qa-found-in-c149][QA-4747][S4] → [qa-found-in-c149][QA-4747][S4][qa-ver-needed-c151/b150]
QA Contact: rdoghi
Blocks: 2032122
Whiteboard: [genai][switcher][qa] → [aife][switcher][qa]

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: This is an S2 accessibility bug - 'Ask' button is a core feature of the Smart Window and should be accessible to users.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: 1. Enable/open Smart Window
  1. Use screen reader / Voice Over
  2. Navigate to 'Ask' button - its checked/unchecked + expanded/closed state should be explicit to those using assistive technology
  • Risk associated with taking this patch: low
  • Explanation of risk level: Ask button's component is changed to a checkbox type element. Small architectural change but requires care as its a key part of the chrome in Smart Window.
  • String changes made/needed?: No
  • Is Android affected?: no
Attachment #9570882 - Flags: approval-mozilla-release?
Flags: qe-verify+
Attachment #9570882 - Attachment is obsolete: true
Attachment #9570882 - Flags: approval-mozilla-release?
Attachment #9571198 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: This is an S2 accessibility bug - 'Ask' button is a core feature of the Smart Window and should be accessible to users.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: 1. Enable/open Smart Window
  1. Use screen reader / Voice Over
  2. Navigate to 'Ask' button - its checked/unchecked + expanded/closed state should be explicit to those using assistive technology
  • Risk associated with taking this patch: low
  • Explanation of risk level: Ask button's component is changed to a checkbox type element. Small architectural change but requires care as its a key part of the chrome in Smart Window.
  • String changes made/needed?: No
  • Is Android affected?: no
QA Whiteboard: [qa-found-in-c149][QA-4747][S4][qa-ver-needed-c151/b150] → [qa-found-in-c149][QA-4747][S4][qa-ver-needed-c151/b150][uplift]
Attached video Pressed.mp4

Noticed a minor issue here @mardak @ayeddi, it seems that the pressed not pressed expanded collapsed states keep changing when we use keyboard and then mouse clicks, not sure if this is ok, can you take a look ?

If I Use keyboard navigation to open and close the Ask Sidebar it will read it as not pressed collapsed, pressed expanded, but after changing to mouse clicks something happens and not pressed becomes expanded, pressed becomes collapsed, please take a look at the video.

Flags: needinfo?(edilee)
Flags: needinfo?(ayeddi)

Also the issue here is not about the Voice over, when we Clicked and Hold the button using the Left mouse click, it wouldnt show that state as if the user is Clicking it, now it does.

Also I think the Screen reader state issue is fixed here with Bug 2017166 ? I tested in our latest Nightly and we do have the state read by Screen readers but with a minor issue encountered mentioned in the previous comment.

(In reply to Rares Doghi, Desktop QA from comment #13)

Created attachment 9571535 [details]
Pressed.mp4

Noticed a minor issue here @mardak @ayeddi, it seems that the pressed not pressed expanded collapsed states keep changing when we use keyboard and then mouse clicks, not sure if this is ok, can you take a look ?

If I Use keyboard navigation to open and close the Ask Sidebar it will read it as not pressed collapsed, pressed expanded, but after changing to mouse clicks something happens and not pressed becomes expanded, pressed becomes collapsed, please take a look at the video.

Oh, this is a bug, thank you for catching it up, :Rares! It'll be access-S3 issue because it creates confusion for screen reader users (especially, those with vision who are likely to combine the mouse and keyboard use, i.e. someone with dyslexia)

The issue:

The pressed state does not update when button is activated with a screen reader, while aria-expanded is being updated as expected. I left a comment with a remediation recommendation in the patch for a related Bug 2017166 - the pressed state is likely coming from the checkbox type added to the toolbarbutton, which is redundant to the aria-expanded and is kind of a gray area for the markup clarity.

Recommendation:

As I mentioned in the patch D294362, I'd kept the aria-expanded state - because it more clearly signals to a user that there is, in fact, some additional content being shown or hidden. Plus, it seems that the logic for the expanded state is working well.

Expected behavior:

Screen reader announces the role (button) and only one state (expanded or collapsed) that is corresponds with the visibility of the sidebar (open or hidden)

Flags: needinfo?(ayeddi)

Clarifying: I still think the initial bug fix should/could be uplifted, because it would resolve a more severe bug than the remaining part of the bug that we described with Rares above.

Attachment #9571198 - Flags: approval-mozilla-release? → approval-mozilla-release+

The main issue reported + the NVDA button state issues are both verified as fixed in our latest Release 150.0.1, only the issue I mentioned in comment 13 remains.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c149][QA-4747][S4][qa-ver-needed-c151/b150][uplift] → [qa-found-in-c149][QA-4747][S4][qa-ver-done-c151/b150][uplift]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: