Skip to content

[CP-stable][web] Fix error in ClickDebouncer when using VoiceOver #174129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Aug 20, 2025

This pull request was created manually.

Issue Link:

#173741

Changelog Description:

Fix a bug that prevents screen readers from pressing buttons through keyboard shortcut.

Impact Description:

A11y for buttons (or any tappables) is broken in Flutter Web.

Workaround:

Is there a workaround for this issue?

No.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

Follow repro steps in #173741

@mdebbar mdebbar added the cp: review Cherry-picks in the review queue label Aug 20, 2025
@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions bot added engine flutter/engine repository. See also e: labels. platform-web Web applications specifically labels Aug 20, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively addresses a crash in the ClickDebouncer when dealing with rapid sequences of pointer events, such as those from VoiceOver. The core change to initialize the debouncer state immediately upon receiving a pointerdown event is a solid approach to prevent null pointer exceptions. The accompanying test updates and the new test case for same-event-loop events are thorough and ensure the fix is robust. My feedback focuses on minor readability improvements by relocating large comment blocks to enhance code clarity, in line with the repository's style guide.

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 20, 2025
@auto-submit auto-submit bot merged commit d345538 into flutter:flutter-3.35-candidate.0 Aug 20, 2025
163 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App cp: review Cherry-picks in the review queue engine flutter/engine repository. See also e: labels. platform-web Web applications specifically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants