Skip to content

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
@goderbauer goderbauer force-pushed the fixSemanticDebugger branch from 4627bbd to 8c7bc0e Compare May 8, 2024 17:54
@github-actions github-actions bot added the a: tests "flutter test", flutter_test, or one of our tests label May 8, 2024
@goderbauer goderbauer force-pushed the fixSemanticDebugger branch from 1aa2b3b to 766a33c Compare May 8, 2024 19:16
@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
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 6, 2024
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