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

[cp][ios] Link PlatformView back to semantics tree (#46471) #46715

Merged

Conversation

cyanglaz
Copy link
Contributor

@cyanglaz cyanglaz commented Oct 10, 2023

Cherry pick 250daad

Cherry pick issue flutter/flutter#136266

Description:

The PlatformView does not have a semantics container when added to semantics tree, this PR gives it a semantics container to ensure accessibility traversal works.

This fixes flutter/flutter#135504, which is a regression of b8332e3

Before b8332e3, the traversal works because the PlatformView is added to the accessibilityElements of the FlutterPlatFormViewSemanticsContainer, which implicitly made the FlutterPlatFormViewSemanticsContainer as the PlatformVIew's AccessibilityContainer.

Now we use the PlatformVIew as the nativeAccessibility of the FlutterPlatFormViewSemanticsContainer, we need to expilicitly set the container.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM

@CaseyHillers CaseyHillers changed the base branch from flutter-3.14-candidate.15 to flutter-3.15-candidate.0 October 10, 2023 17:13
@godofredoc
Copy link
Contributor

@cyanglaz can you please fix the conflicts?

@cyanglaz
Copy link
Contributor Author

I think I need to change the base branch since beta is now on flutter-3.16-candidate.0?

@cyanglaz cyanglaz changed the base branch from flutter-3.15-candidate.0 to flutter-3.16-candidate.0 October 11, 2023 21:02
@cyanglaz cyanglaz force-pushed the cp_platform_view_a11y branch from 000df61 to c996597 Compare October 11, 2023 21:02
@cyanglaz
Copy link
Contributor Author

@godofredoc Rebased to 3.16

@godofredoc godofredoc added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 11, 2023
@auto-submit auto-submit bot merged commit a8f7394 into flutter:flutter-3.16-candidate.0 Oct 11, 2023
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 platform-ios
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants