Skip to content
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

Fix semantic debugger #147953

Merged
merged 8 commits into from
May 8, 2024
Merged

Conversation

goderbauer
Copy link
Member

@goderbauer goderbauer commented May 7, 2024

This was broken in #122452. The culprit is that PipelineOwner.ensureSemantics doesn't turn on semantics for the entire app, it pretends to only turn it on for the local PipelineOwner. Unfortunately, that local PipelineOwner is never informed that it should produce semantics when semantics are not turned on globally. So, PipelineOwner.ensureSemantics is essentially without effect if semantics are not already turned on globally.

I can't think of a use case where it would be useful to only turn on semantics for a particular pipeline owner and fixing PipelineOwner.ensureSemantics would get pretty messy with performance implications even if semantics are turned off. So, this PR deprecates that functionality and moves the SemanticsDebugger to the global semantics API.

Fixes #147665.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) labels May 7, 2024
@goderbauer goderbauer marked this pull request as ready for review May 8, 2024 17:05
@github-actions github-actions bot added the a: tests "flutter test", flutter_test, or one of our tests label May 8, 2024
@github-actions github-actions bot removed the a: tests "flutter test", flutter_test, or one of our tests label May 8, 2024
@goderbauer goderbauer requested a review from chunhtai May 8, 2024 20:57
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

LGTM

@goderbauer goderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2024
@auto-submit auto-submit bot merged commit 2603055 into flutter:master May 8, 2024
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

showSemanticsDebugger to true is not working on Android or web
2 participants